Replies: 1 comment 3 replies
-
这个是属于一个价值取向的问题,没有绝对的正确答案。 我倾向是自动聚焦。 不光我是这么弄,chakra ui 也是这么搞的。 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/TuSimple/naive-ui/blob/a868b5033ddd2d3021efeaac13dc035be9d99204/src/modal/src/BodyWrapper.tsx#L213
在dialog.warning里使用RadioGroup组件时,默认focus第一个元素,导致ui上引起误解。
dialog底层调用的modal,没有地方传参数autoFocus为false啊
是不是modal里autoFocus默认值改为false比较好?
现在我是通过在dialog里加一个w-0的input来hack的。
Beta Was this translation helpful? Give feedback.
All reactions