ant-design / ant-design

An enterprise-class UI design language and React UI library
https://ant.design
MIT License
93.39k stars 51.04k forks source link

Add clear icon on input number #52624

Closed LucPMF closed 1 week ago

LucPMF commented 1 week ago

What problem does this feature solve?

For number input, there is no clear button inside the input to remove the entered value. For consistency, we would like to add one. Also, this would reduce the number of clic for users.

What does the proposed API look like?

As a simple input, the number input can be cleared with a single click using a clear icon.

petercat-assistant[bot] commented 1 week ago

The request to add a clear icon on the input number is a feature request aimed at improving user experience by allowing users to easily clear the entered value with a single click. This would enhance consistency across input components and reduce the number of clicks needed for users to clear the input.

Your request has been noted and will be considered by the team. If you have any further questions or need assistance, feel free to ask.

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.
afc163 commented 1 week ago

Duplicate of #50885