You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a multi-step form using Alpine.js where inputs can be added and removed in response to user actions. Using watch mode, the new inputs get picked up when added, but the library doesn't seem to properly clear them when they are removed. More specifically I am checking the form for validation errors using isValid before allowing the user to move to the next step, but isValid always returns false if any inputs have been removed from the form. I believe the issue is that the inputs still have entries in summary when isValid gets called. The issue also affects isFieldValid.
The text was updated successfully, but these errors were encountered:
I have a multi-step form using Alpine.js where inputs can be added and removed in response to user actions. Using watch mode, the new inputs get picked up when added, but the library doesn't seem to properly clear them when they are removed. More specifically I am checking the form for validation errors using
isValid
before allowing the user to move to the next step, butisValid
always returnsfalse
if any inputs have been removed from the form. I believe the issue is that the inputs still have entries insummary
whenisValid
gets called. The issue also affectsisFieldValid
.The text was updated successfully, but these errors were encountered: