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
I ran into an issue with form field validation. This is what I see in .../media/system/js/fields/validate.js:
// Ignore the element if its currently disabled,// because are not submitted for the http-request.// For those case return always true.if(element.getAttribute('disabled')==='disabled'||element.getAttribute('display')==='none'){this.handleResponse(true,element);returntrue;}
An element with display: none; is not the same as being disabled and will be submitted. Therefore it should be handled like any other input element.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I ran into an issue with form field validation. This is what I see in .../media/system/js/fields/validate.js:
An element with
display: none;is not the same as being disabled and will be submitted. Therefore it should be handled like any other input element.Beta Was this translation helpful? Give feedback.
All reactions