Comments (4)
现在Dropdown的关闭应该是只要在鼠标点击组件外部就触发了
from ant-design.
Hi @Roxannej, thanks for the quick reply.
The problem with trying to close on click outside menu is that there isn't a straightforward way.
We need to maintain extra states, and also onBlur argument causes different issues depending on which component we are adding it to.
Best case scenario we have a calendar panel which doesn't close even when we are clicking outside the panel
Worst case we are having the same panel auto closing on focus change/blur.
from ant-design.
Found a workaround for this.
It seems if we are passing stopPropagation on DatePicker onClick handler, it is working properly.
<DatePicker
format="YYYY-MM-DD"
onClick={(e) => {e.stopPropagation()}}
placement="topRight" />
from ant-design.
stopPropagation
is right.
from ant-design.
Related Issues (20)
- Translation in NL for <Tour> is missing HOT 2
- tsconfig.json内部的配置有报错 HOT 1
- [Draggable Tabs Demo] Drag the tab to the edge will appear abnormal HOT 1
- variant="borderless"的Input框的status效果不生效
- Cascader has wrong white background in dark theme HOT 2
- 按照文档把TimePicker替换momentjs成dayjs,TimePicker. RangePicker无法使用 HOT 3
- inputnumber组件设置precision=0控制选择整数时,输入多个小数点导致form表单拿到的结果异常 HOT 2
- 希望 Tabs 支持 Segmented 样式 HOT 2
- ANT Table Header sort Tooltip is come down, When I scroll the whole page HOT 4
- table如何进行拖拽表头进行列宽的调整? HOT 1
- nextjs 中使用 antd v5.18.3 和 @ant-design/cssinjs v1.21.0 HOT 5
- Input.Group compact包裹Select和Button时,样式故障 HOT 2
- https://ant-design.antgroup.com/index-cn 全局样式-字体-字体颜色,16进制颜色值标注有误 HOT 1
- Theme font-family not applied to Dropdown cascading menu HOT 3
- RangePicker 设置disabled={[true, false]} 并且同时设置 disabledDate={(current) => current && current < dayjs().startOf('day')},endDate无法修改 HOT 1
- table开启virtual后虚拟列表横向滚动条鼠标拖动会直接触底 HOT 4
- 使用moment兼容方法失效 HOT 2
- InputNumber 输入的值会覆盖 suffix HOT 14
- tour‘结束导览’是否支持更改为其他的自定义文案 HOT 1
- 体积太大,希望优化包体积
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ant-design.