Skip to content
Discussion options

You must be logged in to vote

Ah, I see... it actually does properly update the "checked" attribute but for some reason it isn't coming into the input radio DOM elements value property (for example when I do document.querySelector('[required]').value. I suppose this is probably "expected" according to how confusing the value property can be. Anyway, the form properly handles the input changing and when I submit the form, so that works.

However, when binding the :checked to an external method (i.e. for CSP) it doesn't work properly when using a getter function. If I change the getter to a normal function, it seems to work properly. I'm guessing this is some side effect of the way this method is being called, but either…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MichaelMackus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant