Is invalid class being added when visibility changes #414
Unanswered
JoeyNtriga
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
On this page we have a form that uses the build in conditional logic to show/hide two input fields.
The two fields should be required when they are visible so i add validation based on if they are visible or not.
The problem we are facing is when the fields become visible (they are hidden by default), the class is-invalid automatically gets added to the fields resulting in the fields looking like they were incorrectly submitted while this isn't the case.
Did we set it up wrong or is this a bug?
I'll provide some images to visually show what's happening.
Beta Was this translation helpful? Give feedback.
All reactions