select
select copied to clipboard
React Select
According to the source code(useSelectTriggerControl.ts), I found that you detected blur by the event.target,but if the target is in a shadow dom, it will not work,you should check event.path[0] besides...
When I try to select an option, React falls with a "Cannot read property 'focus' of null" error. Demo https://codesandbox.io/s/friendly-pike-l3zrl
`onBlur?: React.FocusEventHandler;` Current spec can not catch value. How to resolve it? v3 implement: `onBlur?: (value: T) => void;`
onBlur current has a single argument with the selected value, onBlur is commonly used to handle dirty tracking which requires a event (ex: formik, etc.). onFocus has a similar problem....
在less里面,有这么一段样式 ``` * { box-sizing: border-box; } ``` 这样会对引用者的样式形成入侵 是否可以移到rc-select class下去做
我Select 的 dropdown 是在 body,希望容器滚动时,dropdown 跟随滚动,初始获取滚动的位置,但是搜索后,可能触发 forcePopupAlign 导致之前计算的 top bottom 都没有用了。。 所以希望能知道触发了 forcePopupAlign,并同时重新计算位置
I opened the same request in AntD GitHub, please forgive me if this is not correct, I will set the link here: https://github.com/ant-design/ant-design/issues/23352
Hello :) I saw on the code, that the OptionList renders a "listbox" role for accessibility, and that function calls renderItem https://github.com/react-component/select/blob/bdbcdf6b10a93b5a7e2568df81b5f44a53c52438/src/OptionList.tsx#L230-L238 but, the value always is the prop "value",...
http://react-component.github.io/select/
### Where to reproduce? [Storybook](http://react-component.github.io/select/?path=/story/*) ### What is expected? Select component work fine. ### What really happen? page show `TypeError: Object(...) is not a function at Module. (http://react-component.github.io/select/main.d07239f2fea4b61aa50a.bundle.js:1:301954) at Module.836...