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
Chrome Version 64.0.3282.140 (Official Build) (64-bit)
Windows 10 desktop
In utility function M.updateTextFields when setting label to active, placeholder is checked for null, which causes unpredictable input field animations if placeholder is undefined or empty string. Similarly, in the on blur event on input fields placeholder is checked just for null. The following lines of code are problematic:
In utility function M.updateTextFields when setting label to active, placeholder is checked for null, which causes unpredictable input field animations if placeholder is undefined or empty string. Similarly, in the on blur event on input fields placeholder is checked just for null. The following lines of code are problematic:
if (element.value.length > 0 || $(element).is(':focus') || element.autofocus || $this.attr('placeholder') !== null) { $this.siblings('label').addClass('active'); }
and
if ($inputElement[0].value.length === 0 && $inputElement[0].validity.badInput !== true && $inputElement.attr('placeholder') === null) { selector += ", label"; }
Can you please look into adding a more complete verification for "empty" placeholder?
The text was updated successfully, but these errors were encountered: