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

Allow radio buttons to get deselected not working #2418

Open
bichelesi opened this issue Jan 21, 2024 · 2 comments
Open

Allow radio buttons to get deselected not working #2418

bichelesi opened this issue Jan 21, 2024 · 2 comments

Comments

@bichelesi
Copy link

bichelesi commented Jan 21, 2024

It isn't possible to deselected a radio buttons.

To allow, i try to change :

if ($radio.attr('data-state') !== undefined) {

to

if ($radio.attr('data-state') === undefined) 

but it isn't perfect because sometime radio not checked.

@bichelesi bichelesi closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2024
@bichelesi bichelesi reopened this Jan 21, 2024
@yurytut1993
Copy link
Contributor

@bichelesi this is standard behaviour for radio buttons - its required and to deselect one you always need to select other.

@bichelesi
Copy link
Author

bichelesi commented Jan 22, 2024

@yurytut1993 It’s standard HTML behaviour but there is a custom function to do this.

 /**
     * Allow radio buttons to get deselected
     */


It’s useful when you have disable option.
Without this behaviour, you have to refresh if you want to change option,.
image

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