primereact
primereact copied to clipboard
Calendar: Add Clear "X" button to input field
Describe the bug
Currently the component exposes clearButtonClassName, however there is no property that allows me to enable the clear button in the input or something like that, as it can be done with the nextIcon, icon, etc. buttons. What should be done to make the button clear in the input?
Reproducer
No response
PrimeReact version
latest
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
@melloware Has anyone given you any insight or anything I should add?
I am not sure what you mean the Clear Button is used here: https://primereact.org/calendar/#button
And it clears the Date for me.
What exactly are you looking for?
We're unable to replicate your issue, if you are able to create a reproducer or add details please edit this issue. This issue will be closed if no activities in 20 days.
@melloware X on the input, I know we can use the footerTemplate but I wanted to go or simplify it
OH that is different. The current Clear button is in the panel you are asking for a Clear "X". Let me update the ticket