react-component / select

React Select
https://select.react-component.now.sh/
MIT License
892 stars 452 forks source link

能否去掉 onBlur 的默认行为: 添加 tag? #952

Open vaynevayne opened 1 year ago

vaynevayne commented 1 year ago

onBlur 的默认行为太多了, 自定义 dorpdown 基本无法使用 比如:

  1. toggleOpen(false) , 导致无法使用内嵌 modal
  2. clearSearchValue(''), 导致无法在自定义 DorndpwnRender内部修改去切换 mode, 因为tag 模式下, blur 会视为添加到 options, 导致切换到其他的 mode 会额外多出这个 option,切换一次多一次 @afc163

一个函数应该只做一件事情, 不要加太多自己的默认行为进去却不提供撤销方式