Repository navigation
fix(motion): attach motion ref to the content wrapper - #633
Conversation
`CSSMotion` binds its transition listeners on the element passed through the motion ref, while the motion classNames and styles are applied to the content wrapper. Since `transitionend` only bubbles upwards, the listeners never saw the wrapper transitions and every motion could only finish through `motionDeadline`. Without a deadline the drawer stayed on `-leave -leave-active` forever and `afterOpenChange(false)` was never called.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. No actionable comments were generated in the recent review. WalkthroughDrawerPopup 将 CSSMotion 提供的 ref 合并到内容包装层,不再将该 ref 作为 DrawerPanel 的容器 ref。新增测试检查 Drawer 关闭后的离场状态、回调次数和最终隐藏状态。 ChangesDrawer 离场动画
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Possibly related PRs
Merge Risk:
|
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #633 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 7
Lines 209 209
Branches 75 75
=========================================
Hits 209 209 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
❌ Deploy failed
📋 Build log (last lines)🤖 Powered by surge-preview |
|||||||||
Reuse the shared `fillRef` helper instead of branching on the ref shape by hand, so the object-ref path stays covered by the utility rather than our own code.
> [!NOTE] > This PR body was truncated due to platform limits. This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@babel/eslint-parser](https://babel.dev/) ([source](https://redirect.github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser)) | [`7.29.9` → `7.29.13`](https://renovatebot.com/diffs/npm/@babel%2feslint-parser/7.29.9/7.29.13) |  |  | | [@babel/generator](https://babel.dev/docs/en/next/babel-generator) ([source](https://redirect.github.com/babel/babel/tree/HEAD/packages/babel-generator)) | [`7.29.14` → `7.29.15`](https://renovatebot.com/diffs/npm/@babel%2fgenerator/7.29.14/7.29.15) |  |  | | [@babel/parser](https://babel.dev/docs/en/next/babel-parser) ([source](https://redirect.github.com/babel/babel/tree/HEAD/packages/babel-parser)) | [`7.29.3` → `7.29.15`](https://renovatebot.com/diffs/npm/@babel%2fparser/7.29.3/7.29.15) |  |  | | [@babel/types](https://babel.dev/docs/en/next/babel-types) ([source](https://redirect.github.com/babel/babel/tree/HEAD/packages/babel-types)) | [`7.29.14` → `7.29.15`](https://renovatebot.com/diffs/npm/@babel%2ftypes/7.29.14/7.29.15) |  |  | | [@napi-rs/cli](https://napi.rs/) ([source](https://redirect.github.com/napi-rs/napi-rs)) | [`3.10.12` → `3.11.1`](https://renovatebot.com/diffs/npm/@napi-rs%2fcli/3.10.12/3.11.1) |  |  | | [@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`24.19.2` → `24.19.4`](https://renovatebot.com/diffs/npm/@types%2fnode/24.19.2/24.19.4) |  |  | | [@typescript-eslint/eslint-plugin](https://typescript-eslint.io/packages/eslint-plugin) ([source](https://redirect.github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)) | [`8.72.2` → `8.74.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/8.72.2/8.74.0) |  |  | | [@typescript-eslint/parser](https://typescript-eslint.io/packages/parser) ([source](https://redirect.github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser)) | [`8.72.2` → `8.74.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/8.72.2/8.74.0) |  |  | | [antd](https://ant.design) ([source](https://redirect.github.com/ant-design/ant-design)) | [`6.6.7` → `6.7.2`](https://renovatebot.com/diffs/npm/antd/6.6.7/6.7.2) |  |  | | [cac](https://redirect.github.com/cacjs/cac) | [`7.1.0` → `7.1.1`](https://renovatebot.com/diffs/npm/cac/7.1.0/7.1.1) |  |  | | [dprint](https://redirect.github.com/dprint/dprint) | [`^0.64.0` → `^0.65.0`](https://renovatebot.com/diffs/npm/dprint/0.64.3/0.65.0) |  |  | | [eslint-plugin-n](https://redirect.github.com/eslint-community/eslint-plugin-n) | [`18.5.0` → `18.6.0`](https://renovatebot.com/diffs/npm/eslint-plugin-n/18.5.0/18.6.0) |  |  | | [terser](https://terser.org) ([source](https://redirect.github.com/terser/terser)) | [`5.51.2` → `5.51.4`](https://renovatebot.com/diffs/npm/terser/5.51.2/5.51.4) |  |  | | [webpack](https://redirect.github.com/webpack/webpack) | [`5.112.2` → `5.113.0`](https://renovatebot.com/diffs/npm/webpack/5.112.2/5.113.0) |  |  | --- ### Release Notes <details> <summary>babel/babel (@​babel/eslint-parser)</summary> ### [`v7.29.13`](https://redirect.github.com/babel/babel/releases/tag/v7.29.13) [Compare Source](https://redirect.github.com/babel/babel/compare/v7.29.9...v7.29.13) #### v7.29.13 (2026-11-04) ##### 🐛 Bug Fix - `babel-generator`, `babel-parser` - [#​18522](https://redirect.github.com/babel/babel/pull/18522) fix(parser): start decorated object members at their first decorator ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-parser` - [#​18520](https://redirect.github.com/babel/babel/pull/18520) fix(parser): allow TS imports to define exports declared before them ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18485](https://redirect.github.com/babel/babel/pull/18485) fix(parser): allow lone `yield` before `in` in an Annex B for-in init ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18483](https://redirect.github.com/babel/babel/pull/18483) fix(parser): respect unicode escape in `isUnparsedContextual` ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18452](https://redirect.github.com/babel/babel/pull/18452) fix(parser): remove non-decimal prefix from bigint ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18449](https://redirect.github.com/babel/babel/pull/18449) fix(parser): allow await as a function expression name inside async arrow ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18453](https://redirect.github.com/babel/babel/pull/18453) Disallow new import prop access ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18450](https://redirect.github.com/babel/babel/pull/18450) Improve F# pipeline direct body check ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18446](https://redirect.github.com/babel/babel/pull/18446) fix(parser): set phase: null for non-deferred imports with deferredImportEvaluation ([#​18313](https://redirect.github.com/babel/babel/issues/18313)) ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18448](https://redirect.github.com/babel/babel/pull/18448) Fix TypeScript parser failing on async calls in ternary consequent ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-generator` - [#​18521](https://redirect.github.com/babel/babel/pull/18521) fix(generator): print override modifier of TSParameterProperty ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18509](https://redirect.github.com/babel/babel/pull/18509) fix(generator): do not apply `jsesc` number radix to non-integer literals ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18500](https://redirect.github.com/babel/babel/pull/18500) fix(generator): escape `of` binding of a using declaration in for-of head ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18461](https://redirect.github.com/babel/babel/pull/18461) fix: invalid `minified: true` output for new expression ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18476](https://redirect.github.com/babel/babel/pull/18476) fix: preserve trailing comma in optional call args ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18456](https://redirect.github.com/babel/babel/pull/18456) fix(generator): keep parens for ?. chain in tag ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18454](https://redirect.github.com/babel/babel/pull/18454) fix(generator): preserve type modifier in TSImportEqualsDeclaration ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-plugin-transform-block-scoping` - [#​18518](https://redirect.github.com/babel/babel/pull/18518) Fix initialization of nested for loop head declarations ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18465](https://redirect.github.com/babel/babel/pull/18465) fix: improve for loop closure environment check ([@​babel-bot](https://redirect.github.com/babel-bot)) - [#​18464](https://redirect.github.com/babel/babel/pull/18464) fix: assign closure body after handling return ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-helper-module-transforms`, `babel-plugin-transform-modules-commonjs` - [#​18499](https://redirect.github.com/babel/babel/pull/18499) fix: commonjs namespace re-export with a string export name ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-helper-skip-transparent-expression-wrappers`, `babel-plugin-transform-optional-chaining` - [#​18482](https://redirect.github.com/babel/babel/pull/18482) Fix optional call losing the receiver through a TS instantiation expression ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-plugin-proposal-partial-application` - [#​18479](https://redirect.github.com/babel/babel/pull/18479) fix(partial-app): support super method call ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-register` - [#​18481](https://redirect.github.com/babel/babel/pull/18481) fix(register): skip hook for ignored files ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-helper-create-class-features-plugin`, `babel-plugin-transform-private-property-in-object` - [#​18462](https://redirect.github.com/babel/babel/pull/18462) Return false for `#x in` on static private fields before initialization ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-traverse` - [#​18480](https://redirect.github.com/babel/babel/pull/18480) fix(babel-traverse): check variable shadowing for global object callees ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-helper-create-class-features-plugin`, `babel-plugin-proposal-decorators` - [#​18478](https://redirect.github.com/babel/babel/pull/18478) Fix decorators interaction with abstract/declare fields ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-core` - [#​18463](https://redirect.github.com/babel/babel/pull/18463) fix(core): createConfigItem allows cb as 2nd arg ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-plugin-bugfix-safari-rest-destructuring-rhs-array` - [#​18457](https://redirect.github.com/babel/babel/pull/18457) fix(bugfix): bound check before array access ([@​babel-bot](https://redirect.github.com/babel-bot)) - Other - [#​18459](https://redirect.github.com/babel/babel/pull/18459) Fix eslint-parser AST definition of AccessorProperty ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-plugin-transform-destructuring` - [#​18460](https://redirect.github.com/babel/babel/pull/18460) fix: only collapse the empty-object check when it targets the declared binding ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-helpers`, `babel-plugin-transform-async-generator-functions`, `babel-runtime-corejs3` - [#​18458](https://redirect.github.com/babel/babel/pull/18458) Fix `asyncIterator` helper forwarding `.throw()` to `.return()` ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-plugin-transform-for-of` - [#​18455](https://redirect.github.com/babel/babel/pull/18455) Skip `for await` in `transform-for-of` ([@​babel-bot](https://redirect.github.com/babel-bot)) - `babel-helper-string-parser`, `babel-parser` - [#​18447](https://redirect.github.com/babel/babel/pull/18447) fix: polish error message for invalid binary 0b19 ([@​babel-bot](https://redirect.github.com/babel-bot)) ##### Committers: 1 - Babel Bot ([@​babel-bot](https://redirect.github.com/babel-bot)) </details> <details> <summary>napi-rs/napi-rs (@​napi-rs/cli)</summary> ### [`v3.11.1`](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/cli@3.11.0...@napi-rs/cli@3.11.1) [Compare Source](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/cli@3.11.0...@napi-rs/cli@3.11.1) ### [`v3.11.0`](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/cli@3.10.12...@napi-rs/cli@3.11.0) [Compare Source](https://redirect.github.com/napi-rs/napi-rs/compare/@napi-rs/cli@3.10.12...@napi-rs/cli@3.11.0) </details> <details> <summary>typescript-eslint/typescript-eslint (@​typescript-eslint/eslint-plugin)</summary> ### [`v8.74.0`](https://redirect.github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#8740-2026-11-23) [Compare Source](https://redirect.github.com/typescript-eslint/typescript-eslint/compare/v8.73.0...v8.74.0) ##### 🚀 Features - **ast-spec:** tighten types of `Property` ([#​13074](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/13074)) - **eslint-plugin:** \[adjacent-overload-signatures] add `ignoreAccessors` option ([#​13011](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/13011)) ##### 🩹 Fixes - **eslint-plugin:** \[array-type] invalid autofix in readonly arrays ([#​13105](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/13105)) - **eslint-plugin:** \[no-deprecated] report deprecated properties in union types ([#​13069](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/13069)) - **parser:** detect jsxPragma as null for the automatic JSX runtime ([#​13129](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/13129)) - **eslint-plugin:** \[consistent-generic-constructors] place annotation after ? and keep line comments out of type arguments ([#​13160](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/13160)) - **eslint-plugin:** \[no-unsafe-enum-assignment] ignore non-enum computed keys ([#​12968](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12968)) - **eslint-plugin:** \[no-implied-eval] handle calls in a switch discriminant ([#​13126](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/13126)) ##### ❤️ Thank You - Ankur Dubey - Evyatar Daud [@​StyleShit](https://redirect.github.com/StyleShit) - Huangshuo Kuang [@​kkkhs](https://redirect.github.com/kkkhs) - kuanghuangshuo - Maksim [@​maksimgm](https://redirect.github.com/maksimgm) - StyleShit [@​StyleShit](https://redirect.github.com/StyleShit) - Yohannes Desta [@​yohannesjoya](https://redirect.github.com/yohannesjoya) See [GitHub Releases](https://redirect.github.com/typescript-eslint/typescript-eslint/releases/tag/v8.74.0) for more information. You can read about our [versioning strategy](https://typescript-eslint.io/users/versioning) and [releases](https://typescript-eslint.io/users/releases) on our website. ### [`v8.73.0`](https://redirect.github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#8730-2026-11-16) [Compare Source](https://redirect.github.com/typescript-eslint/typescript-eslint/compare/v8.72.2...v8.73.0) ##### 🚀 Features - **eslint-plugin:** \[no-unsafe-class-instance-assignment] add rule ([#​12907](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12907)) - **typescript-estree:** add projectService.EXPERIMENTAL_backend for TypeScript 7.1 native parser support over IPC ([#​12803](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12803)) - **eslint-plugin:** \[consistent-type-imports] narrow report location ([#​12924](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12924)) ##### ❤️ Thank You - Eren Batı [@​erenbati](https://redirect.github.com/erenbati) - Evyatar Daud [@​StyleShit](https://redirect.github.com/StyleShit) - Josh Ghoulberg 👻 - Josh Goldberg See [GitHub Releases](https://redirect.github.com/typescript-eslint/typescript-eslint/releases/tag/v8.73.0) for more information. You can read about our [versioning strategy](https://typescript-eslint.io/users/versioning) and [releases](https://typescript-eslint.io/users/releases) on our website. </details> <details> <summary>typescript-eslint/typescript-eslint (@​typescript-eslint/parser)</summary> ### [`v8.74.0`](https://redirect.github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#8740-2026-11-23) [Compare Source](https://redirect.github.com/typescript-eslint/typescript-eslint/compare/v8.73.0...v8.74.0) ##### 🩹 Fixes - **eslint-plugin:** \[no-deprecated] report deprecated properties in union types ([#​13069](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/13069)) - **parser:** detect jsxPragma as null for the automatic JSX runtime ([#​13129](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/13129)) ##### ❤️ Thank You - Evyatar Daud [@​StyleShit](https://redirect.github.com/StyleShit) - Maksim [@​maksimgm](https://redirect.github.com/maksimgm) See [GitHub Releases](https://redirect.github.com/typescript-eslint/typescript-eslint/releases/tag/v8.74.0) for more information. You can read about our [versioning strategy](https://typescript-eslint.io/users/versioning) and [releases](https://typescript-eslint.io/users/releases) on our website. ### [`v8.73.0`](https://redirect.github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#8730-2026-11-16) [Compare Source](https://redirect.github.com/typescript-eslint/typescript-eslint/compare/v8.72.2...v8.73.0) This was a version bump only for parser to align it with other projects, there were no code changes. See [GitHub Releases](https://redirect.github.com/typescript-eslint/typescript-eslint/releases/tag/v8.73.0) for more information. You can read about our [versioning strategy](https://typescript-eslint.io/users/versioning) and [releases](https://typescript-eslint.io/users/releases) on our website. </details> <details> <summary>ant-design/ant-design (antd)</summary> ### [`v6.7.2`](https://redirect.github.com/ant-design/ant-design/releases/tag/6.7.2) [Compare Source](https://redirect.github.com/ant-design/ant-design/compare/6.7.1...6.7.2) - Form - 🐞 Fix Form validation messages showing `undefined` as the field label when Form.Item `name` is `0`. [#​59679](https://redirect.github.com/ant-design/ant-design/pull/59679) [@​nikzanda](https://redirect.github.com/nikzanda) - Table - 🐞 Fix Table `defaultSortOrder` being ignored on grouping columns. [#​59611](https://redirect.github.com/ant-design/ant-design/pull/59611) [@​b84330808](https://redirect.github.com/b84330808) - 🐞 Fix Table custom `filterSearch` callbacks receiving a lowercased and trimmed query in menu mode. [#​59735](https://redirect.github.com/ant-design/ant-design/pull/59735) [@​Aminark](https://redirect.github.com/Aminark) - Layout - 🐞 Fix Layout.Header, Layout.Content, and Layout.Footer failing to apply `rootClassName`. [#​59697](https://redirect.github.com/ant-design/ant-design/pull/59697) [@​nikzanda](https://redirect.github.com/nikzanda) - 🐞 Fix Layout.Header, Layout.Content, and Layout.Footer losing styles when using a custom `prefixCls`. [#​59935](https://redirect.github.com/ant-design/ant-design/pull/59935) [@​li-jia-nan](https://redirect.github.com/li-jia-nan) - Typography - 🐞 Fix Typography calling `editable.onStart` twice on edit icon clicks when both `icon` and `text` triggers are enabled. [#​59629](https://redirect.github.com/ant-design/ant-design/pull/59629) [@​dogledogle](https://redirect.github.com/dogledogle) - 🐞 Fix Typography showing an ellipsis tooltip for text that fits at certain browser zoom levels. [#​59661](https://redirect.github.com/ant-design/ant-design/pull/59661) [@​iBreaker](https://redirect.github.com/iBreaker) - 🤖 Fix Button, Drawer, and QRCode declaration errors when TypeScript checks optional properties with `exactOptionalPropertyTypes` and `skipLibCheck: false`. [#​59922](https://redirect.github.com/ant-design/ant-design/pull/59922) [@​dreamvrutik](https://redirect.github.com/dreamvrutik) - 🐞 Fix static Message leaving its promise pending when the first notice is closed before rendering. [#​59942](https://redirect.github.com/ant-design/ant-design/pull/59942) [@​Aminark](https://redirect.github.com/Aminark) - 🐞 Fix Modal retaining closed dialogs created with `Modal.useModal()` in the `Modal.destroyAll()` list. [#​59447](https://redirect.github.com/ant-design/ant-design/pull/59447) [@​Chaoqi31](https://redirect.github.com/Chaoqi31) - 🐞 Fix Drawer waiting for a timeout after its closing animation ends in projects locked to `@rc-component/drawer` 1.4.2. [#​59882](https://redirect.github.com/ant-design/ant-design/pull/59882) [react-component/drawer#633](https://redirect.github.com/react-component/drawer/pull/633) [@​yoyo837](https://redirect.github.com/yoyo837) - 🐞 Fix Upload crashing when a file’s `linkProps` is an invalid JSON string. [#​59323](https://redirect.github.com/ant-design/ant-design/pull/59323) [@​dogledogle](https://redirect.github.com/dogledogle) - 🐞 Fix Calendar disabling boundary dates when `validRange` includes times of day. [#​59947](https://redirect.github.com/ant-design/ant-design/pull/59947) [@​Aminark](https://redirect.github.com/Aminark) - ⌨️ Fix Checkbox losing its native mixed state after mouse or keyboard activation while `indeterminate` remains `true`. [#​59859](https://redirect.github.com/ant-design/ant-design/pull/59859) [@​Aminark](https://redirect.github.com/Aminark) - 🐞 Fix ColorPicker producing invalid gradients when deleting gradient stops with the keyboard. [#​59837](https://redirect.github.com/ant-design/ant-design/pull/59837) [@​Aminark](https://redirect.github.com/Aminark) - 🐞 Fix Tabs lagging behind the pointer when dragging tabs in `card` or `editable-card` mode. [#​59854](https://redirect.github.com/ant-design/ant-design/pull/59854) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🐞 Fix Button animating unintentionally when its margin changes. [#​59886](https://redirect.github.com/ant-design/ant-design/pull/59886) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🐞 Fix InputNumber spacing between its prefix, suffix, and step buttons in spinner mode (`mode="spinner"`). [#​59572](https://redirect.github.com/ant-design/ant-design/pull/59572) [@​dogledogle](https://redirect.github.com/dogledogle) - 🐞 Fix Mentions missing mentions across line breaks when `getMentions` uses the default separator. [#​59948](https://redirect.github.com/ant-design/ant-design/pull/59948) [@​Aminark](https://redirect.github.com/Aminark) - 🐞 Fix Watermark ignoring `fontSize`, `fontWeight`, and `fontFamily` when `font.fontStyle` is `none`. [#​59855](https://redirect.github.com/ant-design/ant-design/pull/59855) [@​adityajai119](https://redirect.github.com/adityajai119) - ⚡️ Speed up Shift range selection in Tree.DirectoryTree when many folders are expanded. [#​59944](https://redirect.github.com/ant-design/ant-design/pull/59944) [@​Aminark](https://redirect.github.com/Aminark) - 🤖 Fix a TypeScript error when setting `startPoint` on a single-handle Slider. [#​59877](https://redirect.github.com/ant-design/ant-design/pull/59877) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🤖 Fix Statistic.Timer and Statistic.Countdown `onChange` callback types to infer a required numeric value. [#​59903](https://redirect.github.com/ant-design/ant-design/pull/59903) [@​SweetDianDian](https://redirect.github.com/SweetDianDian) - 🇺🇿 Correct Uzbek (`uz_UZ`) translations in Form, Table, Transfer, Typography, and Tour. [#​59876](https://redirect.github.com/ant-design/ant-design/pull/59876) [@​XakimovNosirbek](https://redirect.github.com/XakimovNosirbek) *** - Form - 🐞 修复 Form.Item 的 `name` 为 `0` 时,Form 校验信息将字段名显示为 `undefined` 的问题。 [#​59679](https://redirect.github.com/ant-design/ant-design/pull/59679) [@​nikzanda](https://redirect.github.com/nikzanda) - Table - 🐞 修复 Table 分组列的 `defaultSortOrder` 不生效的问题。 [#​59611](https://redirect.github.com/ant-design/ant-design/pull/59611) [@​b84330808](https://redirect.github.com/b84330808) - 🐞 修复 Table 在菜单筛选模式下向自定义 `filterSearch` 回调传入转小写并去除首尾空格后的搜索内容的问题。 [#​59735](https://redirect.github.com/ant-design/ant-design/pull/59735) [@​Aminark](https://redirect.github.com/Aminark) - Layout - 🐞 修复 Layout.Header、Layout.Content 和 Layout.Footer 的 `rootClassName` 不生效的问题。 [#​59697](https://redirect.github.com/ant-design/ant-design/pull/59697) [@​nikzanda](https://redirect.github.com/nikzanda) - 🐞 修复 Layout.Header、Layout.Content 和 Layout.Footer 使用自定义 `prefixCls` 时样式丢失的问题。 [#​59935](https://redirect.github.com/ant-design/ant-design/pull/59935) [@​li-jia-nan](https://redirect.github.com/li-jia-nan) - Typography - 🐞 修复 Typography 同时启用 `icon` 和 `text` 编辑触发方式时,点击编辑图标会触发两次 `editable.onStart` 的问题。 [#​59629](https://redirect.github.com/ant-design/ant-design/pull/59629) [@​dogledogle](https://redirect.github.com/dogledogle) - 🐞 修复 Typography 在部分浏览器缩放比例下,文本未截断时仍显示省略提示的问题。 [#​59661](https://redirect.github.com/ant-design/ant-design/pull/59661) [@​iBreaker](https://redirect.github.com/iBreaker) - 🤖 修复同时开启 `exactOptionalPropertyTypes` 并关闭 `skipLibCheck` 时,Button、Drawer 和 QRCode 的 TypeScript 类型声明错误。 [#​59922](https://redirect.github.com/ant-design/ant-design/pull/59922) [@​dreamvrutik](https://redirect.github.com/dreamvrutik) - 🐞 修复静态 Message 的第一条消息在渲染前被关闭时,返回的 Promise 一直挂起的问题。 [#​59942](https://redirect.github.com/ant-design/ant-design/pull/59942) [@​Aminark](https://redirect.github.com/Aminark) - 🐞 修复通过 `Modal.useModal()` 创建的弹窗关闭后仍留在 `Modal.destroyAll()` 列表中的问题。 [#​59447](https://redirect.github.com/ant-design/ant-design/pull/59447) [@​Chaoqi31](https://redirect.github.com/Chaoqi31) - 🐞 修复项目锁定 `@rc-component/drawer` 1.4.2 时,Drawer 关闭动画结束后仍需等待超时才完成关闭的问题。 [#​59882](https://redirect.github.com/ant-design/ant-design/pull/59882) [react-component/drawer#633](https://redirect.github.com/react-component/drawer/pull/633) [@​yoyo837](https://redirect.github.com/yoyo837) - 🐞 修复文件的 `linkProps` 为无效 JSON 字符串时 Upload 崩溃的问题。 [#​59323](https://redirect.github.com/ant-design/ant-design/pull/59323) [@​dogledogle](https://redirect.github.com/dogledogle) - 🐞 修复 Calendar 的 `validRange` 包含具体时刻时,起止日期可能无法选择的问题。 [#​59947](https://redirect.github.com/ant-design/ant-design/pull/59947) [@​Aminark](https://redirect.github.com/Aminark) - ⌨️ 修复 Checkbox 在 `indeterminate` 保持为 `true` 时,经鼠标或键盘操作后丢失原生半选中状态的问题。 [#​59859](https://redirect.github.com/ant-design/ant-design/pull/59859) [@​Aminark](https://redirect.github.com/Aminark) - 🐞 修复 ColorPicker 使用键盘删除渐变色标后生成无效渐变的问题。 [#​59837](https://redirect.github.com/ant-design/ant-design/pull/59837) [@​Aminark](https://redirect.github.com/Aminark) - 🐞 修复 Tabs 在 `card` 或 `editable-card` 模式下拖拽标签时跟随指针有延迟的问题。 [#​59854](https://redirect.github.com/ant-design/ant-design/pull/59854) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🐞 修复 Button 在外边距变化时意外触发位移动画的问题。 [#​59886](https://redirect.github.com/ant-design/ant-design/pull/59886) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🐞 修复 InputNumber 在拨轮模式(`mode="spinner"`)下,前后缀与步进按钮间距异常的问题。 [#​59572](https://redirect.github.com/ant-design/ant-design/pull/59572) [@​dogledogle](https://redirect.github.com/dogledogle) - 🐞 修复 Mentions 的 `getMentions` 使用默认分隔符时遗漏多行文本中提及项的问题。 [#​59948](https://redirect.github.com/ant-design/ant-design/pull/59948) [@​Aminark](https://redirect.github.com/Aminark) - 🐞 修复 Watermark 在 `font.fontStyle` 为 `none` 时忽略 `fontSize`、`fontWeight` 和 `fontFamily` 的问题。 [#​59855](https://redirect.github.com/ant-design/ant-design/pull/59855) [@​adityajai119](https://redirect.github.com/adityajai119) - ⚡️ 加快 Tree.DirectoryTree 在大量文件夹展开时通过 Shift 选择范围内节点的速度。 [#​59944](https://redirect.github.com/ant-design/ant-design/pull/59944) [@​Aminark](https://redirect.github.com/Aminark) - 🤖 修复 Slider 在单滑块模式下设置 `startPoint` 时的 TypeScript 报错。 [#​59877](https://redirect.github.com/ant-design/ant-design/pull/59877) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🤖 修复 Statistic.Timer 和 Statistic.Countdown 的 `onChange` 回调类型,将参数正确推断为必传的数字。 [#​59903](https://redirect.github.com/ant-design/ant-design/pull/59903) [@​SweetDianDian](https://redirect.github.com/SweetDianDian) - 🇺🇿 修正 Form、Table、Transfer、Typography 和 Tour 的乌兹别克语(`uz_UZ`)翻译。 [#​59876](https://redirect.github.com/ant-design/ant-design/pull/59876) [@​XakimovNosirbek](https://redirect.github.com/XakimovNosirbek) ### [`v6.7.1`](https://redirect.github.com/ant-design/ant-design/releases/tag/6.7.1) [Compare Source](https://redirect.github.com/ant-design/ant-design/compare/6.7.0...6.7.1) - Table - 🐞 Fix Table continuing to apply outdated sorters after column configuration changes. [#​59763](https://redirect.github.com/ant-design/ant-design/pull/59763) [@​Aminark](https://redirect.github.com/Aminark) - 🐞 Fix Table expand-all icon alignment with row expand icons in small and middle sizes. [#​59795](https://redirect.github.com/ant-design/ant-design/pull/59795) [@​nikzanda](https://redirect.github.com/nikzanda) - ⌨️ Fix Table ignoring the reduced motion preference when scrolling to the top after pagination, sorting, or filtering. [#​59864](https://redirect.github.com/ant-design/ant-design/pull/59864) [@​li-jia-nan](https://redirect.github.com/li-jia-nan) - Modal - 🐞 Fix Modal focus errors and duplicate `afterOpenChange` calls when React `Activity` reveals a hidden Modal. [#​59845](https://redirect.github.com/ant-design/ant-design/pull/59845) [@​yoyo837](https://redirect.github.com/yoyo837) - 🐞 Fix Modal leave-completion callbacks firing before DOM removal when leave motion is disabled mid-transition. [#​59845](https://redirect.github.com/ant-design/ant-design/pull/59845) [@​yoyo837](https://redirect.github.com/yoyo837) - ⚡️ Improve Form performance by keeping `@rc-component/form` out of components that only read the variant, an extra dependency introduced in 6.7.0. [#​59872](https://redirect.github.com/ant-design/ant-design/pull/59872) [@​gowtham-padala](https://redirect.github.com/gowtham-padala) - 🐞 Fix Card action buttons with `href` displaying incorrect icon spacing. [#​59726](https://redirect.github.com/ant-design/ant-design/pull/59726) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🐞 Fix Input.OTP treating intermediate IME composition text as committed input. [#​58762](https://redirect.github.com/ant-design/ant-design/pull/58762) [@​wanxiankai](https://redirect.github.com/wanxiankai) - 🐞 Fix DatePicker and TimePicker time panel cell alignment and content clipping by scrollbars. [#​59828](https://redirect.github.com/ant-design/ant-design/pull/59828) [@​ffgenius](https://redirect.github.com/ffgenius) - 🐞 Fix Dropdown menu items in disabled submenus not displaying their disabled state correctly. [#​59826](https://redirect.github.com/ant-design/ant-design/pull/59826) [@​yoyo837](https://redirect.github.com/yoyo837) - ⌨️ Fix Anchor ignoring the reduced motion preference when scrolling to a link. [#​59861](https://redirect.github.com/ant-design/ant-design/pull/59861) [@​li-jia-nan](https://redirect.github.com/li-jia-nan) - ⌨️ Fix BackTop ignoring the reduced motion preference when returning to the top. [#​59864](https://redirect.github.com/ant-design/ant-design/pull/59864) [@​li-jia-nan](https://redirect.github.com/li-jia-nan) - 🇮🇩 Improve ConfigProvider Indonesian (`id_ID`) translations. [#​59807](https://redirect.github.com/ant-design/ant-design/pull/59807) [@​insanrizky](https://redirect.github.com/insanrizky) - 🇨🇿 Improve ConfigProvider Czech (`cs_CZ`) translations. [#​59787](https://redirect.github.com/ant-design/ant-design/pull/59787) [@​kojdad-alt](https://redirect.github.com/kojdad-alt) *** - Table - 🐞 修复 Table 在列配置变化后仍使用旧排序规则的问题。 [#​59763](https://redirect.github.com/ant-design/ant-design/pull/59763) [@​Aminark](https://redirect.github.com/Aminark) - 🐞 修复 Table 在小尺寸和中等尺寸下展开全部图标与行展开图标未对齐的问题。 [#​59795](https://redirect.github.com/ant-design/ant-design/pull/59795) [@​nikzanda](https://redirect.github.com/nikzanda) - ⌨️ 修复 Table 在分页、排序或筛选后滚动到顶部时未遵循系统减少动态效果设置的问题。 [#​59864](https://redirect.github.com/ant-design/ant-design/pull/59864) [@​li-jia-nan](https://redirect.github.com/li-jia-nan) - Modal - 🐞 修复 Modal 在 React `Activity` 恢复显示时聚焦报错和 `afterOpenChange` 重复触发的问题。 [#​59845](https://redirect.github.com/ant-design/ant-design/pull/59845) [@​yoyo837](https://redirect.github.com/yoyo837) - 🐞 修复 Modal 在离场动画中途禁用时完成回调早于 DOM 移除的问题。 [#​59845](https://redirect.github.com/ant-design/ant-design/pull/59845) [@​yoyo837](https://redirect.github.com/yoyo837) - ⚡️ 优化 Form 中仅读取 variant 的组件,不再引入 6.7.0 中额外引入的 `@rc-component/form` 依赖,提升性能。 [#​59872](https://redirect.github.com/ant-design/ant-design/pull/59872) [@​gowtham-padala](https://redirect.github.com/gowtham-padala) - 🐞 修复 Card 操作区中带 `href` 的 Button 图标间距异常的问题。 [#​59726](https://redirect.github.com/ant-design/ant-design/pull/59726) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🐞 修复 Input.OTP 使用中文等输入法时将合成输入的中间态文本作为已提交内容处理的问题。 [#​58762](https://redirect.github.com/ant-design/ant-design/pull/58762) [@​wanxiankai](https://redirect.github.com/wanxiankai) - 🐞 修复 DatePicker 和 TimePicker 时间面板单元格未居中及内容被滚动条遮挡的问题。 [#​59828](https://redirect.github.com/ant-design/ant-design/pull/59828) [@​ffgenius](https://redirect.github.com/ffgenius) - 🐞 修复 Dropdown 禁用子菜单中的菜单项未正确显示禁用状态的问题。 [#​59826](https://redirect.github.com/ant-design/ant-design/pull/59826) [@​yoyo837](https://redirect.github.com/yoyo837) - ⌨️ 修复 Anchor 点击链接滚动时未遵循系统减少动态效果设置的问题。 [#​59861](https://redirect.github.com/ant-design/ant-design/pull/59861) [@​li-jia-nan](https://redirect.github.com/li-jia-nan) - ⌨️ 修复 BackTop 返回顶部时未遵循系统减少动态效果设置的问题。 [#​59864](https://redirect.github.com/ant-design/ant-design/pull/59864) [@​li-jia-nan](https://redirect.github.com/li-jia-nan) - 🇮🇩 完善 ConfigProvider 印尼语 `id_ID` 翻译。 [#​59807](https://redirect.github.com/ant-design/ant-design/pull/59807) [@​insanrizky](https://redirect.github.com/insanrizky) - 🇨🇿 完善 ConfigProvider 捷克语 `cs_CZ` 翻译。 [#​59787](https://redirect.github.com/ant-design/ant-design/pull/59787) [@​kojdad-alt](https://redirect.github.com/kojdad-alt) ### [`v6.7.0`](https://redirect.github.com/ant-design/ant-design/releases/tag/6.7.0) [Compare Source](https://redirect.github.com/ant-design/ant-design/compare/6.6.8...6.7.0) - 🆕 Add Button, Tag, Steps, Alert, and Timeline support for the global ConfigProvider `variant`, and component-specific `divider.variant` configuration for Divider line styles. [#​59589](https://redirect.github.com/ant-design/ant-design/pull/59589) [#​59588](https://redirect.github.com/ant-design/ant-design/pull/59588) [#​59578](https://redirect.github.com/ant-design/ant-design/pull/59578) [#​59577](https://redirect.github.com/ant-design/ant-design/pull/59577) [#​59587](https://redirect.github.com/ant-design/ant-design/pull/59587) [#​59576](https://redirect.github.com/ant-design/ant-design/pull/59576) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🆕 Add `suffix` to DatePicker, TimePicker, Select, AutoComplete, Cascader, and TreeSelect to customize suffix content, with state-based rendering for selection components. Deprecate `suffixIcon` in favor of `suffix` while retaining compatibility. [#​59240](https://redirect.github.com/ant-design/ant-design/pull/59240) [#​59185](https://redirect.github.com/ant-design/ant-design/pull/59185) [@​QDyanbing](https://redirect.github.com/QDyanbing) [@​meet-student](https://redirect.github.com/meet-student) - 🆕 Add `allowClear.tabIndex` to Input, Input.TextArea, Mentions, InputNumber, Select, AutoComplete, TreeSelect, Cascader, DatePicker, and TimePicker to control clear-button Tab order. Add `allowClear.label` to Input, Input.TextArea, Mentions, DatePicker, and TimePicker for accessible clear-button names, with field-level ConfigProvider inheritance. [#​59566](https://redirect.github.com/ant-design/ant-design/pull/59566) [#​59567](https://redirect.github.com/ant-design/ant-design/pull/59567) [#​59548](https://redirect.github.com/ant-design/ant-design/pull/59548) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🆕 Add App Fragment `ref` support with `component={false}` in React 19.3 and later. [#​59281](https://redirect.github.com/ant-design/ant-design/pull/59281) [@​li-jia-nan](https://redirect.github.com/li-jia-nan) - 🆕 Add BorderBeam `items` prop to configure each beam's `color`, `lineWidth`, `outset`, and `size`, with the array length determining the beam count. [#​59095](https://redirect.github.com/ant-design/ant-design/pull/59095) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🆕 Add Cascader `checkStrictly` to select parent and child options independently in multiple mode. [#​59566](https://redirect.github.com/ant-design/ant-design/pull/59566) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🆕 Add component-specific ConfigProvider `allowClear` settings for Cascader, TreeSelect, and AutoComplete to configure their clear buttons globally. [#​59593](https://redirect.github.com/ant-design/ant-design/pull/59593) [#​59592](https://redirect.github.com/ant-design/ant-design/pull/59592) [#​59591](https://redirect.github.com/ant-design/ant-design/pull/59591) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🆕 Add Checkbox.Group and Radio.Group `classNames` and `styles` to customize group containers, items, icons, and labels. [#​59058](https://redirect.github.com/ant-design/ant-design/pull/59058) [#​59059](https://redirect.github.com/ant-design/ant-design/pull/59059) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🆕 Add InputNumber `allowClear` and `onClear` to clear values with customizable icons, disabled state, and accessible labels. [#​59251](https://redirect.github.com/ant-design/ant-design/pull/59251) [@​nikzanda](https://redirect.github.com/nikzanda) - 🆕 Add Space `align="stretch"` to stretch child elements along the cross axis. [#​59005](https://redirect.github.com/ant-design/ant-design/pull/59005) [@​dogledogle](https://redirect.github.com/dogledogle) - 🆕 Add Typography `shimmer` prop for animated shimmering text, with `duration` configuring motion and wait times separately. [#​59054](https://redirect.github.com/ant-design/ant-design/pull/59054) [@​zombieJ](https://redirect.github.com/zombieJ) - 🛠 Align Input, Input.TextArea, Mentions, InputNumber, Select, AutoComplete, TreeSelect, Cascader, DatePicker, and TimePicker `allowClear.disabled` behavior so `true` removes the clear button consistently with `allowClear={false}`. [#​59548](https://redirect.github.com/ant-design/ant-design/pull/59548) [#​59566](https://redirect.github.com/ant-design/ant-design/pull/59566) [#​59567](https://redirect.github.com/ant-design/ant-design/pull/59567) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 💄 Replace Alert container radius component token `borderRadius` with `containerBorderRadius`; migrate custom container radius overrides to the new token. [#​59305](https://redirect.github.com/ant-design/ant-design/pull/59305) [@​MadCcc](https://redirect.github.com/MadCcc) - DatePicker - 🆕 Add DatePicker and TimePicker `components.nowButton` and `components.okButton` to customize Today/Now and confirmation buttons independently. Deprecate the legacy `components.button` while retaining compatibility. [#​59778](https://redirect.github.com/ant-design/ant-design/pull/59778) [@​yoyo837](https://redirect.github.com/yoyo837) - ⌨️ Improve DatePicker and TimePicker keyboard and screen reader support, including arrow-key navigation, Enter/Space selection, and skipping disabled time options, plus keyboard activation and native disabled states for Today/Now footer buttons. [#​59778](https://redirect.github.com/ant-design/ant-design/pull/59778) [#​59367](https://redirect.github.com/ant-design/ant-design/pull/59367) [@​yoyo837](https://redirect.github.com/yoyo837) - 🐞 Fix DatePicker and TimePicker ignoring `clearIcon` settings when an `allowClear` object omits `clearIcon`. [#​59565](https://redirect.github.com/ant-design/ant-design/pull/59565) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🐞 Fix DatePicker, TimePicker, and Calendar dependency imports in native Node ESM environments. [#​59261](https://redirect.github.com/ant-design/ant-design/pull/59261) [@​zombieJ](https://redirect.github.com/zombieJ) - 🐞 Fix DatePicker parsing localized date input with Day.js when the component locale differs from the global locale. [#​59240](https://redirect.github.com/ant-design/ant-design/pull/59240) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🌐 Correct DatePicker `zh_TW` week-selection terminology. [#​59261](https://redirect.github.com/ant-design/ant-design/pull/59261) [@​zombieJ](https://redirect.github.com/zombieJ) - Select - 🆕 Add Select `autoComplete` and ConfigProvider `select.autoComplete` to configure browser autocomplete behavior for the search input. [#​59566](https://redirect.github.com/ant-design/ant-design/pull/59566) [#​59632](https://redirect.github.com/ant-design/ant-design/pull/59632) [@​QDyanbing](https://redirect.github.com/QDyanbing) - ⌨️ Improve screen reader support for Select, Cascader, TreeSelect, and AutoComplete by hiding default decorative arrow, search, and loading icons. [#​59709](https://redirect.github.com/ant-design/ant-design/pull/59709) [@​droduit](https://redirect.github.com/droduit) - ⌨️ Improve Select, Cascader, and TreeSelect clear-button keyboard accessibility with focus visibility, focus outlines, and localized accessible labels. [#​58267](https://redirect.github.com/ant-design/ant-design/pull/58267) [@​Pareder](https://redirect.github.com/Pareder) - ⌨️ Fix Select and AutoComplete screen reader announcements of option positions, total counts, and groups in virtual scrolling mode. [#​58993](https://redirect.github.com/ant-design/ant-design/pull/58993) [@​yoyo837](https://redirect.github.com/yoyo837) - Table - 🆕 Add Table `expandable.showExpandAll` and `expandable.onExpandAll` to expand or collapse all expandable rows on the current page when using `expandedRowRender`. [#​59036](https://redirect.github.com/ant-design/ant-design/pull/59036) [@​nikzanda](https://redirect.github.com/nikzanda) - 🆕 Add Table `components.ExpandIcon` and an `expandable.columnTitle` render function to customize row and expand-all controls. Deprecate `expandable.expandIcon` in favor of `components.ExpandIcon` while retaining compatibility. [#​59036](https://redirect.github.com/ant-design/ant-design/pull/59036) [@​nikzanda](https://redirect.github.com/nikzanda) - ⌨️ Improve Table row selection accessibility with localized accessible names and keyboard access to custom selection menus. [#​58969](https://redirect.github.com/ant-design/ant-design/pull/58969) [@​thlovey](https://redirect.github.com/thlovey) - ⚡️ Improve Table performance when applying multiple column filters to deeply nested data. [#​59719](https://redirect.github.com/ant-design/ant-design/pull/59719) [@​Aminark](https://redirect.github.com/Aminark) - Tree - 💄 Improve Tree non-checkable `selectable={false}` nodes with disabled text colors and cursors, without hover highlighting. [#​58906](https://redirect.github.com/ant-design/ant-design/pull/58906) [@​EmilyyyLiu](https://redirect.github.com/EmilyyyLiu) - 🐞 Fix Tree ignoring defaults and preventing uncontrolled updates when `expandedKeys`, `selectedKeys`, and similar props are explicitly `undefined`. [#​59274](https://redirect.github.com/ant-design/ant-design/pull/59274) [@​aojunhao123](https://redirect.github.com/aojunhao123) - 🐞 Fix Tree unexpectedly scrolling when a focusable element inside a node title receives focus. [#​59274](https://redirect.github.com/ant-design/ant-design/pull/59274) [@​aojunhao123](https://redirect.github.com/aojunhao123) - 🐞 Fix Tree drop targets before nested first-child nodes, overwritten custom drag text, and delayed hover expansion after unmount. [#​59274](https://redirect.github.com/ant-design/ant-design/pull/59274) [@​aojunhao123](https://redirect.github.com/aojunhao123) - Listy - 🆕 Add Listy `rowKey` callback's second argument `index` to generate keys from row indexes. [#​59347](https://redirect.github.com/ant-design/ant-design/pull/59347) [@​aojunhao123](https://redirect.github.com/aojunhao123) - 🆕 Add Listy `rowHoverable` prop to disable row hover highlighting. [#​59273](https://redirect.github.com/ant-design/ant-design/pull/59273) [@​QDyanbing](https://redirect.github.com/QDyanbing) - 🆕 Add Listy `scrollWidth` prop to enable horizontal scrolling for virtual lists wider than the container. [#​59197](https://redirect.github.com/ant-design/ant-design/pull/59197) [@​aojunhao123](https://redirect.github.com/aojunhao123) - Pagination - 🆕 Add an optional third `info` argument with `info.recommendPage` to Pagination `onChange` when page size changes to help preserve the current data position, also available through Table and List `pagination.onChange`. [#​58604](https://redirect.github.com/ant-design/ant-design/pull/58604) [@​EmilyyyLiu](https://redirect.github.com/EmilyyyLiu) - ♿ Improve Pagination list semantics and keyboard and disabled-state accessibility for pagination controls. [#​58604](https://redirect.github.com/ant-design/ant-design/pull/58604) [@​EmilyyyLiu](https://redirect.github.com/EmilyyyLiu) - 🌐 Correct Pagination and page-size text in Armenian (`hy_AM`), Albanian (`sq_AL`), Nepali (`ne_NP`), and Traditional Chinese (`zh_TW`) loca > [!IMPORTANT] > ✂ PR body was truncated to here. </details> --- ### Configuration 📅 **Schedule**: (in timezone Asia/Seoul) - Branch creation - Between 12:00 AM and 05:59 AM, only on Monday (`* 0-5 * * 1`) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/swc-project/swc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yNjIuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjI2Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

问题
CSSMotion把过渡事件监听绑在 motion ref 指向的元素 上(patchMotionEvents(getDomElement())),而DrawerPopup把motionClassName/motionStyle打在.rc-drawer-content-wrapper上,却把containerRef={motionRef}传给了DrawerPanel(.rc-drawer-section,wrapper 的子节点)。transitionend只会向上冒泡,永远到不了父节点,所以监听器一次都收不到 → 动画状态无法通过过渡结束收敛,只能靠motionDeadline的定时器兜底。复现(
@rc-component/motion@1.4.0,真实 Chromium):把motionDeadline去掉后关闭抽屉,wrapper 永久停在bamboo-leave bamboo-leave-active,afterOpenChange(false)永不触发,节点一直不收敛(destroyOnHidden=false时窗口一直保持挂载且不可见地留在 DOM 里)。antd 在
motion里设了motionDeadline: 500,所以线上不显形;但任何自定义 motion 不设 deadline 的用法(本仓库 demo 设的是1000,也只是靠超时)都会踩到,且 deadline 本身只是超时兜底,时长与真实 CSS 过渡不一致时还会提前/延后收敛。修改
把 motion ref 合并进 content-wrapper 的 callback ref,让「接收动画类名的元素」与「接收过渡事件的元素」是同一个:
fillWrapperRef同时写wrapperRef.current(resize 逻辑依赖)并把节点交给 motion refDrawerPanel不再接收containerRef(它原本就被 motion ref 占用,panelRef走的是RefContext,不受影响)验证
ends the leave motion on the transition end of the content wrapper:不设motionDeadline,只fireEvent.transitionEnd(wrapper),断言afterOpenChange恰好一次false且最终落到rc-drawer-content-wrapper-hidden。该测试在master上失败(afterOpenChange调用次数为 0),本分支通过npm test:5 suites / 52 tests 通过;tsc --noEmit无错误;npm run build通过motionDeadline=500与不设 deadline 两种)回归:进场播完再关闭、进场未结束就关闭,destroyOnHidden开/关,afterOpenChange与最终 DOM 均符合预期与 #591 的关系
#591 提的是同一个问题(
fillRef版本),但已CONFLICTING且自 2026-04 无更新。本 PR 基于当前master重做,并额外带了上面那个能真正锁住行为的回归测试;如需以 #591 为准,我可以把测试单独拆出来跟它走。Close #591
测试
npm test通过Summary by CodeRabbit