materialize
materialize copied to clipboard
Inputs with valid value have 'invalid' class assigned if they are disabled while still having focus
If an input has a valid value, but is then disabled while it still has focus the input has the 'invalid' class added when it should have 'valid' added. Filling out an input with a valid value, then blurring, then disabling results in the intended effect.
Thanks for the awesome work guys! I'm loving it so far.
I have faced the same issue where if input field having valid value is disabled, it continues to have focus with 'invalid' class.
The same thing happen with readonly fields. They are are marked "invalid" on blur.
See modified CodePen
No comments?