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

Provide an easy way for a user to clear a field #5092

Closed
mtbayley opened this issue Oct 20, 2023 · 3 comments
Closed

Provide an easy way for a user to clear a field #5092

mtbayley opened this issue Oct 20, 2023 · 3 comments
Labels

Comments

@mtbayley
Copy link
Contributor

It would be nice to have the ability to clear a field with the 'X' within a field. Autocomplete already has this.

Could this be extended to TextEdit, NumericEdit, DateEdit, etc?

image

@mtbayley mtbayley added the Type: Feature ⚙ Request or idea for a new feature. label Oct 20, 2023
@stsrki
Copy link
Collaborator

stsrki commented Oct 21, 2023

The Autocomplete text field is based on an input with type="search", as shown in the image below.

image

That means the clear button is handled natively by the browser. You can do the same on our regular TextEdit by defining the Role parameter, but for the Numeric and Date fields, I don't see it happening.

If you really want that feature, you can make it by placing them inside of an Addon and then having a clear button to reset the value.

@github-actions
Copy link
Contributor

This is an automated message reminding that this issue is expecting the author's answer.

@github-actions github-actions bot added the Stale label Oct 30, 2023
@mtbayley
Copy link
Contributor Author

mtbayley commented Nov 1, 2023

Role="TextRole.Search" was what I needed. Thanks!

@mtbayley mtbayley closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants