select icon indicating copy to clipboard operation
select copied to clipboard

React Select

Results 191 select issues
Sort by recently updated
recently updated
newest added

The Select component, drop-down list doesn't render in a Portal causing issues with z-index and overflows when used inside pop-up modals. https://react.dev/reference/react-dom/createPortal By itself, on main page things mostly work,...

becasue the use of composedPath(), which can not be used in closed shadow dom. try another way to check click outside may solve it.

## Motivation Currently, `` does not accept the `role` prop as an input, which prevents developers from explicitly defining accessibility roles (e.g., `role="combobox"`). This causes accessibility checkers to report errors...

# 🤔 This is a ... - [ ] 🆕 New feature - [x] 🐞 Bug fix - [ ] 📝 Site / documentation improvement - [ ] 📽️ Demo...

### 🤔 这个变动的性质是? - [x] ⭐️ 功能增强 ### 🔗 相关 Issue fix [54884](https://github.com/ant-design/ant-design/issues/54884) ### 💡 需求背景和解决方案 > 在`Select`已选且`filterSort`启用的情况下,用搜索的方式重新选择,选项没有滚到最上面,不方便用户选择 **解决方法** `Select`组件当提供`filterSort`参数时,搜索时默认定位到第一个元素 **改动前:** 用户需要手动滚到最上面去选取最相关的选项 ![before](https://static.cdn.sunmi.com/fe-wasm/bugreport/before_1.gif) **改动后:** 自动滚到最上供用户选择 ![after](https://static.cdn.sunmi.com/fe-wasm/bugreport/after_1.gif) ### 📝 更新日志 >...

fix: https://github.com/ant-design/ant-design/issues/54884 related issiue: https://github.com/ant-design/ant-design/issues/53752 related PR: https://github.com/react-component/select/pull/1146 问题分析: OptionList 中:使用 startsWith + 硬编码 data.value useFilterOptions 中:使用 includes + 大小写不敏感 过滤逻辑 (useFilterOptions) 和 定位逻辑 (OptionList)应该一致 ## Summary by CodeRabbit -...

I'm trying to create a Select component with a object value. ``` { label: `My String`, value: { CuteCharm: true }, } ``` This results in a runtime error because...

按照原有的逻辑,会默认根据 input 字符串 startsWith 规则自动将匹配的第一项设置为 activate ,且这种行为写死不可配置。 我认为以上行为不对,匹配规则应当能可选地由用户自己配置。 我的修改使得用户可以自行定制匹配规则,详见代码里的两个例子 任意部分匹配(而不仅开头) ![图片](https://github.com/user-attachments/assets/05144ed5-1fc0-4d3c-b1a4-de6ea640ea86) 强制不匹配(很多时候用户希望按下 Enter 键会直接发起搜索,而不是自动选中第一项) ![图片](https://github.com/user-attachments/assets/1706f664-422d-45dd-88cb-4858e542b30e) 像B站搜索框就是不会默认 activate 第一个匹配项的 ![图片](https://github.com/user-attachments/assets/b95a3a67-2b6f-4943-9d03-35af3c451ef4) ## Summary by CodeRabbit ## Summary by CodeRabbit - **新功能** -...

With a reference to https://www.github.com/DefinitelyTyped/DefinitelyTyped/pull/54352, this PR addresses a TypeScript error that occurs when using rc-select with CSS Modules in a Vite project with `exactOptionalPropertyTypes: true` enabled. ## Summary by...

When using `rc-select` with CSS Modules and Vite, the following error occurs with `exactOptionalPropertyTypes: true` enabled: **CSS Module:** ```css /* myStyles.module.css */ .selectBox { /* styles */ } ``` **Component:**...