select
select copied to clipboard
feat: support overriding default component behavior for the onBlur event in tags mode
为rc-select组件的标签模式下新增了两个参数:onBlurRemoveSpace和onBlurAddValue,用于覆盖组件内部默认的onBlur事件的行为
- resolve https://github.com/ant-design/ant-design/issues/51149
- resolve https://github.com/react-component/select/issues/1075
- resolve https://github.com/react-component/select/issues/952
Summary by CodeRabbit
Summary by CodeRabbit
-
新功能
- 新增属性
onBlurRemoveSpace
和onBlurAddValue
,用户可自定义失焦时是否添加value,或是否移除value前后的空格。此改动不会造成breaking change
- 新增属性