You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this thread int the forums got me curious. Apparently by manually setting the required HTML5 attribute, you can shoot yourself in the foot: the requiredsetting will no longer be settable, messing up validation.
When called on to change the requiredsetting, both methods first check if an attribute by that name exists, set the attribute and early-return.
I believe the methods should exclude required from the attribute check, especially since required() is explicitly mentioned as a method in the docs (line 118). But presumably similar issues can arise with other attributes, too.
Cheers
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Hi,
this thread int the forums got me curious. Apparently by manually setting the
required
HTML5 attribute, you can shoot yourself in the foot: therequired
setting will no longer be settable, messing up validation.This bug resides in two places:
Inputfield::set()
Inputfield::___callUnknown()
When called on to change the
required
setting, both methods first check if an attribute by that name exists, set the attribute and early-return.I believe the methods should exclude required from the attribute check, especially since
required()
is explicitly mentioned as a method in the docs (line 118). But presumably similar issues can arise with other attributes, too.Cheers
The text was updated successfully, but these errors were encountered: