Skip to content

Commit

Permalink
fix(next/antd/vue): fix useResponsiveFormLayout props for tooltipIcon…
Browse files Browse the repository at this point in the history
… bug (#2549)
  • Loading branch information
ifblooms authored Dec 1, 2021
1 parent f0c8154 commit cb9f134
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/antd/src/form-layout/useResponsiveFormLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const useResponsiveFormLayout: IUseResponsiveFormLayout = (props) => {
if (!isArr(breakpoints)) {
return { ref, props }
}
const [layoutProps, setLayout] = useState<IProps>({})
const [layoutProps, setLayout] = useState<IProps>(props)

const updateUI = () => {
setLayout(calculateProps(ref.current, props))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const useResponsiveFormLayout: IUseResponsiveFormLayout = (
if (!isArr(breakpoints)) {
return { props: ref(props) }
}
const layoutProps = ref<IProps>({})
const layoutProps = ref<IProps>(props)

const updateUI = () => {
layoutProps.value = calculateProps(root.value, props)
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/form-layout/useResponsiveFormLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const useResponsiveFormLayout: IUseResponsiveFormLayout = (props) => {
if (!isArr(breakpoints)) {
return { ref, props }
}
const [layoutProps, setLayout] = useState<IProps>({})
const [layoutProps, setLayout] = useState<IProps>(props)

const updateUI = () => {
setLayout(calculateProps(ref.current, props))
Expand Down

0 comments on commit cb9f134

Please sign in to comment.