From 888457238d99faa59308aa65cae21c81ab6a1607 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Mon, 11 Nov 2024 14:40:49 +0800 Subject: [PATCH 1/3] fix: modal aria error --- components/vc-dialog/Content.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/components/vc-dialog/Content.tsx b/components/vc-dialog/Content.tsx index ad2761384..7c1a5fe60 100644 --- a/components/vc-dialog/Content.tsx +++ b/components/vc-dialog/Content.tsx @@ -5,7 +5,7 @@ import { getTransitionProps } from '../_util/transition'; import dialogPropTypes from './IDialogPropTypes'; import { offset } from './util'; const sentinelStyle = { width: 0, height: 0, overflow: 'hidden', outline: 'none' }; - +const entityStyle = { outline: 'none' }; export type ContentRef = { focus: () => void; changeActive: (next: boolean) => void; @@ -28,14 +28,14 @@ export default defineComponent({ const dialogRef = ref(); expose({ focus: () => { - sentinelStartRef.value?.focus(); + sentinelStartRef.value?.focus({ preventScroll: true }); }, changeActive: next => { const { activeElement } = document; if (next && activeElement === sentinelEndRef.value) { - sentinelStartRef.value.focus(); + sentinelStartRef.value.focus({ preventScroll: true }); } else if (!next && activeElement === sentinelStartRef.value) { - sentinelEndRef.value.focus(); + sentinelEndRef.value.focus({ preventScroll: true }); } }, }); @@ -143,9 +143,10 @@ export default defineComponent({ onMousedown={onMousedown} onMouseup={onMouseup} > -
- {modalRender ? modalRender({ originVNode: content }) : content} -
+
+ {modalRender ? modalRender({ originVNode: content }) : content} +
+
) : null} From 5d6ebb30ace17f7252dbdde92d9023a1e7004c5b Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Mon, 11 Nov 2024 14:47:34 +0800 Subject: [PATCH 2/3] release 4.2.6 --- CHANGELOG.en-US.md | 7 +++++++ CHANGELOG.zh-CN.md | 7 +++++++ package.json | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 12cc1a41e..84d4ffa90 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -10,6 +10,13 @@ --- +## 4.2.6 + +- 🐞 Fix Modal component aria-hidden error problem under chrome [#7823](https://github.com/vueComponent/ant-design-vue/issues/7823) +- 🐞 Fix the problem that the built-in input method of Safari automatically fills in the decimal point when inputting Chinese [#7918](https://github.com/vueComponent/ant-design-vue/issues/7918) +- 🐞 Fix InputNumber component disabled style problem [#7776](https://github.com/vueComponent/ant-design-vue/issues/7776) +- 🐞 Fix Select cannot lose focus problem [#7819](https://github.com/vueComponent/ant-design-vue/issues/7819) + ## 4.2.5 - 🐞 Fix Empty component memory leak problem diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index d1e06a065..c9b50d963 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -10,6 +10,13 @@ --- +## 4.2.6 + +- 🐞 修复 Modal 组件在 chrome 下,aria-hidden 报错问题 [#7823](https://github.com/vueComponent/ant-design-vue/issues/7823) +- 🐞 修复 Safari 下自带输入法 input 组件输入中文时,自动填写小数点问题 [#7918](https://github.com/vueComponent/ant-design-vue/issues/7918) +- 🐞 修复 InputNumber 组件 disabled 样式问题 [#7776](https://github.com/vueComponent/ant-design-vue/issues/7776) +- 🐞 修复 Select 无法失焦问题 [#7819](https://github.com/vueComponent/ant-design-vue/issues/7819) + ## 4.2.5 - 🐞 修复 Empty 组件内存泄漏问题 diff --git a/package.json b/package.json index bb3e7fe29..7e370cdf7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ant-design-vue", - "version": "4.2.5", + "version": "4.2.6", "title": "Ant Design Vue", "description": "An enterprise-class UI design language and Vue-based implementation", "keywords": [ From 4a37016f4e3f829838b2e2b3cd128af220d67be8 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Mon, 11 Nov 2024 14:52:27 +0800 Subject: [PATCH 3/3] fix: ts type error --- components/vc-trigger/Popup/PopupInner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vc-trigger/Popup/PopupInner.tsx b/components/vc-trigger/Popup/PopupInner.tsx index 441df4cd5..8772ac3f3 100644 --- a/components/vc-trigger/Popup/PopupInner.tsx +++ b/components/vc-trigger/Popup/PopupInner.tsx @@ -196,7 +196,7 @@ export default defineComponent({ ref={alignRef} monitorWindowResize disabled={alignDisabled.value} - align={align} + align={align as any} onAlign={onInternalAlign} v-slots={{ default: () => (