📝 [RFC] Unify allowClear api for clearable component #43582
kiner-tang
announced in
RFCs - archive
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
📝 [RFC] Unify allowClear api for clearable component
Summary
Currently, most of our clearable components already support the
allowClear
property to control whether a clear button is displayed to allow the user to manually clear the content/value of the component, butallowClear
is only a switch and users cannot customize the clear button.The following components need to be refactored:
Motivation
As #43495 mentioned.
allowClear
needs to be refactored in order to support customize clear button and facilitate subsequent API extensions.API
Basic Example
Detail
react-componet needs to be refactored simultaneously. After react-component is refactored, antd upgrades corresponding react-component and updates related documents simultaneously.
Beta Was this translation helpful? Give feedback.
All reactions