alibaba-fusion / next

🦍 A configurable component library for web built on React.
https://fusion.design
MIT License
4.58k stars 584 forks source link

[DatePicker]Select和DatePicker同时存在且Select组件showSearch=true时,点击DatePicker展开其下拉框,此时单击Select,Select的搜索框获取不到焦点。 #3785

Open youka2012 opened 2 years ago

youka2012 commented 2 years ago

Component

Select

Reproduction link

https://riddle.alibaba-inc.com/riddles/37cd8326

Steps to reproduce

Select和DatePicker同时存在且Select组件showSearch=true时,点击DatePicker展开其下拉框,此时单击Select,Select的搜索框获取不到焦点。demo见https://riddle.alibaba-inc.com/riddles/37cd8326

bindoon commented 2 years ago

解法: DatePicker 做改造:如果是点 document 让弹窗消失,不要再 focus 回去