Skip to content
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

toggle the required attribute #85

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Sep 4, 2024

WHY

fixes: #84

BEFORE - What was wrong? What was happening before this PR?

The required attribute was hardcoded on the inputs. For that reason, when the input was hidden, but still had the required attribute, the browser validation would throw an error as reported in the mentioned issue.

AFTER - What is happening after this PR?

We toggle the required attribute similar to how we do with disabled

Is it a breaking change or non-breaking change?

No

@pxpm pxpm merged commit 0a47da9 into main Sep 4, 2024
4 checks passed
@pxpm pxpm deleted the toggle-required-attribute-too branch September 4, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Update on a Menu-item - CheckValidity fails
1 participant