Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar: Add Clear "X" button to input field #6745

Open
franmc01 opened this issue Jun 11, 2024 · 5 comments
Open

Calendar: Add Clear "X" button to input field #6745

franmc01 opened this issue Jun 11, 2024 · 5 comments
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add

Comments

@franmc01
Copy link
Contributor

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 franmc01 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 11, 2024
@franmc01
Copy link
Contributor Author

franmc01 commented Jul 1, 2024

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

@melloware
Copy link
Member

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 melloware added Resolution: Cannot Replicate Issue could not be replicated by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 1, 2024
Copy link

github-actions bot commented Jul 1, 2024

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.

@franmc01
Copy link
Contributor Author

franmc01 commented Jul 1, 2024

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

@melloware
Copy link
Member

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 melloware added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Resolution: Cannot Replicate Issue could not be replicated by Core Team labels Jul 1, 2024
@melloware melloware changed the title Calendar: Clear button Calendar: Add Clear "X" button to input field Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

2 participants