select icon indicating copy to clipboard operation
select copied to clipboard

fix(22907): cannot open Select when mode="tags" or mode="multiple" has searchValue

Open Loogeek opened this issue 4 years ago • 0 comments

https://github.com/ant-design/ant-design/issues/22907

原因:

  1. 在mode=tags或multiple存在searchValue情况下,点击placeholder会先正常展示出Options,并移除了placeholder节点
  2. 会触发useSelectTriggerControl hook,此时的target节点是已删除掉的placeholder节点,导致if判断为true,触发triggerOpen(false)隐藏掉Options
屏幕快照 2020-05-23 下午1 32 05

Loogeek avatar May 23 '20 05:05 Loogeek