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

[invokers] invokeaction=set/reset/clear for form inputs #1038

Open
ryantownsend opened this issue Apr 22, 2024 · 2 comments
Open

[invokers] invokeaction=set/reset/clear for form inputs #1038

ryantownsend opened this issue Apr 22, 2024 · 2 comments

Comments

@ryantownsend
Copy link

ryantownsend commented Apr 22, 2024

It's great that we've got stepUp/stepDown for number inputs, but in addition to this I'd like to propose a set and possibly reset or clear for form inputs (set with an empty value could work for clear and set with an 'original' value could work for reset so all 3 may not be necessary)

My use-case is having a bunch of filters on an ecommerce website. Outside the filter form (that might be buried in a closed <dialog>), there's a list of active filters, providing quick-access for the user to remove them and widen the search.

For the checkbox filters, I can use <label for="[checkbox-id]"> to uncheck the filters, however with the price filter (two number inputs), there's no way to clear their values without manual JavaScript (afaik), <button invoketarget="[input-id]" invokeaction="set" value=""> would work wonders for this and provide an extensible mechanism to reset/clear individual inputs and no doubt apply to a bunch of other use-cases given that any value could be set.

(sorry if this has already been proposed, I couldn't find anything in the Github issue search!)

Copy link

There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label.

@github-actions github-actions bot added the stale label Oct 20, 2024
@ryantownsend
Copy link
Author

@keithamus is there anywhere I need to follow this up? (if not, ignore this, just bumping to prevent stale bot closing)

@keithamus keithamus removed the stale label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants