Repository navigation
fix(popup): suppress content while disabled - #4486
Closed
Xapollon430 wants to merge 1 commit into
Closed
Xapollon430 wants to merge 1 commit into
Xapollon430 wants to merge 1 commit into
Conversation
Xapollon430
requested review from
HaixingOoO,
NWYLZW,
RylanBot,
ZWkang,
carolin913,
honkinglin and
uyarn
as code owners
November 12, 2026 19:25
Collaborator
TDesign Component Site Preview Open
|
commit: |
Collaborator
|
Please continue fixing the issue in the existing PR #4468 instead of opening a new PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🤔 这个 PR 的性质是?
🔗 相关 Issue
Closes #4485.
💡 需求背景和解决方案
DatePicker, DateRangePicker, and TimePicker pass their disabled state to Popup. A Popup that was already open still renders its content and accepts selections. Derive the actual popup visibility from its disabled state and remove the content immediately while disabled, including during the exit transition. This also covers a controlled Popup whose caller still passes
visible={true}.To reproduce, open a picker, set its disabled prop from the parent, then try to choose a new value. The value should stay unchanged. Re-enable the picker and select a value to check normal interaction.
DatePicker recording · DateRangePicker recording · TimePicker recording
The new regression fails on the baseline and passes with the fix. The Popup, SelectInput, DatePicker and TimePicker suites passed with 137 tests across nine files using the repository's Vitest configuration and a local alias for the checked-out common submodule.
📝 更新日志
tdesign-react
☑️ 请求合并前的自查清单