primereact icon indicating copy to clipboard operation
primereact copied to clipboard

Calendar: Add Clear "X" button to input field

Open franmc01 opened this issue 1 year ago • 5 comments

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

franmc01 avatar Jun 11 '24 14:06 franmc01

@melloware Has anyone given you any insight or anything I should add?

franmc01 avatar Jul 01 '24 12:07 franmc01

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.

image

What exactly are you looking for?

melloware avatar Jul 01 '24 13:07 melloware

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.

github-actions[bot] avatar Jul 01 '24 13:07 github-actions[bot]

@melloware X on the input, I know we can use the footerTemplate but I wanted to go or simplify it

franmc01 avatar Jul 01 '24 14:07 franmc01

OH that is different. The current Clear button is in the panel you are asking for a Clear "X". Let me update the ticket

melloware avatar Jul 01 '24 16:07 melloware