Skip to content

up-autosubmit on alpinejs input field #523

Answered by triskweline
davisums asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't worked with AlpineJS, but [up-autosubmit] relies on input or changed events being fired. If Alpine changes the value of an input without firing such an event, Unpoly will not know that anything changed.

was wondering if there's anything I can do with unpoly itself

You can implement this example without any JavaScript, by having the gender buttons be labels for a hidden radio button: https://jsfiddle.net/w4a3rp82/5/

Replies: 1 comment 1 reply

Comment options

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

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