material-components-web icon indicating copy to clipboard operation
material-components-web copied to clipboard

MDC-Textfield required highlighting on init

Open KentuckyMC opened this issue 8 years ago • 2 comments

Bugs

Follow the template below to ensure the quickest and most accurate response to your issue.

What MDC Web Version are you using?

0.31.0

What browser(s) is this bug affecting?

Think every browser, I'm testing in Chrome

What OS are you using?

Windows 10

What are the steps to reproduce the bug?

See https://codepen.io/anon/pen/LQmLZG

If I set the required in the Javascript on init, the field is highlighted red.

What is the expected behavior?

The highlighting should be set after the textfield has lost focus.

What is the actual behavior?

The textfield has the red highlighting after init.

Any other information you believe would be useful?

KentuckyMC avatar Feb 21 '18 10:02 KentuckyMC

This bug also appears on mdc-text-field--textarea.

kvdheuvel avatar Feb 21 '18 12:02 kvdheuvel

@jvalst this is a duplicate of https://github.com/material-components/material-components-web/issues/2029 and is currently being worked on in this PR https://github.com/material-components/material-components-web/pull/2201.

Will close and track on #2029

moog16 avatar Feb 21 '18 17:02 moog16