-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abide only invalidates last radio button (Foundation 6.6.3) #12081
Comments
Hi @amygilbert, thanks for reporting this. It seems this was already broken in v6.6.2. 5eac681#diff-37998d120faf57b3e7580109c8e306e2
@soylent can you take a look at this? This would be really great. |
This might be the cause: 5eac681#diff-37998d120faf57b3e7580109c8e306e2L485 I will prepare a PR but I need a review - cc @soylent @SassNinja @joeworkman |
Hi @DanielRuf, thanks for quickly finding the solution! Do you know when it might get merged? Also, I noticed another problem which might be related to this, so wanted to verify if that PR fixes it too. When I have this group of
it is supposed to make sure that Please, let me know if this is unrelated and I should create a separate issue for it. Thanks! |
Hi @lirael, I am waiting for feedback from the team, including @SassNinja and @joeworkman. Your issue might be related to the changes that we introduced in the past.
See also the addition in the documentation: https://github.com/foundation/foundation-sites/pull/11720/files Does this help with your problem? |
If you can tests the changes from #12082, a review would be very helpful. |
…asses fix: keep the already set input error classes - closes #12081
What should happen?
A group of radio buttons with the 'required' attribute on one of them: Clicking submit without selecting one should add the is-invalid-input and is-invalid-label classes, and the data-invalid attribute to each radio button in the group.
Using the browser's inspector after submit (Foundation 6.6.1):
...
What happens instead?
Only the last element (even if that's not the one that has the 'required' attribute) gets the classes and data attribute.
Using the browser's inspector after submit (Foundation 6.6.3):
...
Possible Solution
...
Test Case and/or Steps to Reproduce (for bugs)
Test Case: https://codepen.io/amygilbert/pen/RwWvQQp
this codepen uses the 6.6.3 cdnjs. If you switch it to 6.6.1, you'll see that it works as expected.
How to reproduce:
Context
...
Your Environment
Checklist
The text was updated successfully, but these errors were encountered: