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

Make it possible to override required value that was set in the wrapper. #1247

Merged
merged 2 commits into from May 5, 2015

Conversation

nashby
Copy link
Collaborator

@nashby nashby commented May 3, 2015

fixes #1178

@jedschneider hey, I fixed you test and added it to this pull request.

@rafaelfranca
Copy link
Collaborator

:shipit:

with_concat_form_for(@user) do |f|
concat f.input :name, required: false
end
assert_no_select 'input[type=text][required]'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check for aria-required as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! Added.

@carlosantoniodasilva
Copy link
Member

👍

nashby added a commit that referenced this pull request May 5, 2015
Make it possible to override required value that was set in the wrapper.
@nashby nashby merged commit 24eb917 into master May 5, 2015
@nashby nashby deleted the issue-1178 branch May 5, 2015 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

when specifying required html5 attribute in wrapper, override at input declaration requires opposite logic
4 participants