Comments (5)
删除onBlur里面的triggerOpen(false);就可以了。
from ant-design-vue.
Saw this comment
/**
* We will prevent blur to handle open event when user click outside,
* since this will repeat trigger `onOpenChange` event.
*/
Can we find a balance way on that?
from ant-design-vue.
Plz refer to below
change triggerOpen(false)
to onSubmit()
will resolve my question
// Global click handler
onMounted(() => {
globalMousedownEvent.value = addGlobalMousedownEvent((e: MouseEvent) => {
const target = getTargetFromEvent(e);
if (open.value) {
const clickedOutside = isClickOutside(target);
if (!clickedOutside) {
preventBlurRef.value = true;
// Always set back in case `onBlur` prevented by user
raf(() => {
preventBlurRef.value = false;
});
} else if (!focused.value || clickedOutside) {
triggerOpen(false); // change to `onSubmit()` will resolve my question
}
}
});
});
from ant-design-vue.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
from ant-design-vue.
I encountered the same problem. Losing focus does not change the value, which gives users a wrong perception.
from ant-design-vue.
Related Issues (20)
- Watermark水印组件的字体无法设置opacity半透明样式
- 列配置使用customcell进行表格合并时,customCell方法内部逻辑会重复触发多一次
- <a-input-number /> 在<a-form />中使用时,点击Label不会自动Focus(), 其他组件正常
- 在axios拦截器里使用message、notification等API,无法使用config provider定义的主题 HOT 4
- 打开dialog时控制台报报错 HOT 3
- 日历组件月份不显示中文 HOT 3
- Input 输入框输入表情时,长度计算错误 HOT 5
- InputNumber修改v-model的值,change事件不触发 HOT 2
- InputNumber 禁用时文本颜色应该是灰色
- 文件上传的onSuccess方法会将后端返回的String类型数字转为Number造成精度丢失 HOT 1
- popover组件的getPopupContainer是否支持全局配置 HOT 3
- 新版浏览器会报错aira-hidden问题 HOT 2
- 希望在Table的colums属性中加一个设置colgroup标签的max-width、min-width的功能
- 全局a-config-provider设置的componentSize,在modal.confirm中没有生效
- 插槽在两个table组件中都渲染(其中一个未接受插槽)
- mentions组件支持autoSize功能
- 希望加入表单组建read-only 模式
- a-menu组件在三级导航的时候布局错乱
- Hello, do you consider supporting paste upload when uploading files? For example, the upload components of OpenTiny, View Design and Tdesign support paste upload?
- <a-config-provider> dropdownmatchselectwidth doesn't work on Select but work on TreeSelect
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-vue.