materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Inputs with valid value have 'invalid' class assigned if they are disabled while still having focus

Open bschnelle opened this issue 11 years ago • 3 comments

CodePen

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.

bschnelle avatar Oct 05 '15 19:10 bschnelle

I have faced the same issue where if input field having valid value is disabled, it continues to have focus with 'invalid' class.

shailendra-gupta-dev avatar Oct 06 '15 14:10 shailendra-gupta-dev

The same thing happen with readonly fields. They are are marked "invalid" on blur.

See modified CodePen

yanickrochon avatar Sep 02 '16 19:09 yanickrochon

No comments?

yanickrochon avatar Sep 07 '16 13:09 yanickrochon