Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Hello,
I have a problem with guessing maxlength attribute if field definition has attr option. Please see below:
maxlength
attr
$builder ->add( 'title', null, [ 'attr' => [ 'autocomplete' => 'off', 'data-display' => true, ], ] ); ....... /** * Title * * @var string * * @ORM\Column(type="string", length=255, nullable=false) * @Assert\NotNull(groups={}) * @Assert\Length(max=255, groups={}) */ private $title;
In this case I don't see maxlength attribute in html output, but if I declare field like this (without attr option):
$builder ->add( 'title', null, [ ] );
maxlength attribute appears in html output.
Could you please clarify this behavior.
Thanks in advance
The text was updated successfully, but these errors were encountered:
I think this is a duplicate of #11527 and was fixed with PR #12548. So it should be fixed in the next release.
Sorry, something went wrong.
Indeed, looks like #12548 fixed merging attr options.
No branches or pull requests
Hello,
I have a problem with guessing
maxlength
attribute if field definition hasattr
option. Please see below:In this case I don't see
maxlength
attribute in html output, but if I declare field like this (withoutattr
option):maxlength
attribute appears in html output.Could you please clarify this behavior.
Thanks in advance
The text was updated successfully, but these errors were encountered: