Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Changed option guessing to maxlength#7273
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
HTML attribute for max length is ``maxlength``.
HeahDude left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This can be merged in 2.7 👍
| ``max_length`` | ||
| If the field is some sort of text field, then the ``max_length`` option can be | ||
| ``maxlength`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for opening this PR! This change is legit, but I think you should also replaceoption byhtml attribute for both this one andrequired above. since this does not use the options at all, but theattr option, btwmax_length option has been deprecated in 2.5.
caillioux commentedDec 18, 2016
Thanks for the comment@HeahDude |
| single: Forms; Field type guessing | ||
| FieldType Options Guessing | ||
| FieldAttributes Guessing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I understand why you did it but this change is not needed since guessers are about to change type's options, actuallyrequired andmaxlength are define thanks to theattr option in the form factory but the registered doctrine and validation guessers are setting some options too, maybe it's worth documenting them though. I don't know what others think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Do you think we should just remove the maxlength part and keep required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
No I don't :) I was suggesting to add undocumented guessed options, not to remove these ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This change also needs to be reverted.
HeahDude commentedJul 29, 2017
I suggest to merge this PR as is, and add proper documentation for guessed options in another one. @TheYouX Could you please rebase? |
HTML attribute name is 'maxlength' instead of 'max_length'.