Skip to content
Discussion options

You must be logged in to vote

You can use x-effect:

<div x-data="{accept: false}">
   <input type="checkbox" x-model="accept" name="accept" id="accept" >
   <input type="checkbox" x-bind:disabled="!accept" name="accept2" id="accept2" x-effect="if(!accept) $el.checked = false">
</div>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Shadecute
Comment options

Answer selected by Shadecute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants