-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Select] 自定义渲染的label需要进行容错处理 #2812
Comments
👋 @kajweb,感谢给 TDesign 提出了 issue。 |
可以暂时这样 |
目前已经这样使用了。。。 |
那label写成纯string不行吗? |
可以 |
写成纯string 暂时可以支持这个场景的使用 https://stackblitz.com/edit/react-ca1yfc?file=src%2Fdemo.jsx 如果选中项也需要定义样式 可以配合valueDisplay再进行定制 |
tdesign-react 版本
1.5.3([email protected])([email protected])
重现链接
无
重现步骤
开启搜索,并将label设置为
ReactNode
:如label={<>{option.label}</>}
在页面中进行搜索
期望结果
正常搜索
实际结果
搜索异常
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
src/select/base/Select.tsx
第240行附近,对label进行了
toUpperCase
的操作The text was updated successfully, but these errors were encountered: