You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
formily的VoidField如果display初始值为hidden,这时候VoidField里面的组件都不渲染,form graph里面没有对应的字段,无法访问内部field状态,同时field里面的初始值也不生效了。
示例代码:
sandbox:https://codesandbox.io/s/cold-sun-t9glql?file=/App.tsx
在初始场景时字段void的display值为hidden,不渲染任何内容,这时候里面的input也不渲染,field的状态无法获取,默认值1234也不生效。
Beta Was this translation helpful? Give feedback.
All reactions