Skip to content

Don't set required and aria-required for attributes with conditional presence validators#685

Merged
donv merged 1 commit into
bootstrap-ruby:mainfrom
AndersGM:dont-show-conditional-presence-validators-as-required
May 24, 2023
Merged

Don't set required and aria-required for attributes with conditional presence validators#685
donv merged 1 commit into
bootstrap-ruby:mainfrom
AndersGM:dont-show-conditional-presence-validators-as-required

Conversation

@AndersGM
Copy link
Copy Markdown
Contributor

After the nice addition in: #664 I've run into issues with attributes that have conditional presence validators (:if and :unless). This PR fixes that, so the required HTML-attributes are only added when we are sure the attributes are always required.

@donv donv merged commit cd512e3 into bootstrap-ruby:main May 24, 2023
@donv
Copy link
Copy Markdown
Collaborator

donv commented May 24, 2023

Thanks!

@AndersGM AndersGM deleted the dont-show-conditional-presence-validators-as-required branch May 24, 2023 11:58
@AndersGM
Copy link
Copy Markdown
Contributor Author

@donv Would it be possible to make a new release with this fix? :-)

@donv
Copy link
Copy Markdown
Collaborator

donv commented May 28, 2023

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants