x-bind not updating when linked to a getter #2907
-
I have a simple login form on which I am attempting to perform validation. Everything is working fine except when I try to apply the "disabled" class to the submit button when valid_form = false. Regardless of what I do, the "disabled" class does not apply when it is linked to a getter. In Alpine DevTools in the browser, the valid_form variable is correctly resolving as "false". It works fine if I manually set it using alpine to "true" or if I link it to a variable which is set to true, but it breaks if I try to link it to a getter. The issue persists even if I manually change the valid_form getter to return false. Have I misunderstood how getters work?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your example has several typos (email vs email_address, valid_form vs form_valid, etc). Can you create a codepen to look at? |
Beta Was this translation helpful? Give feedback.
Your example has several typos (email vs email_address, valid_form vs form_valid, etc). Can you create a codepen to look at?