PolymerElements / paper-input

A Material Design text field
https://www.webcomponents.org/element/PolymerElements/paper-input
130 stars 162 forks source link

Red line when using textarea with required attribute in Firefox #577

Open kreinholt opened 6 years ago

kreinholt commented 6 years ago

Description

When binding to a null variable, a red line appears above the textarea. This occurs in Firefox.

Expected outcome

No red line.

Actual outcome

Red line appears

Live Demo

http://jsbin.com/muqahekohi/edit?html,output

Steps to reproduce

Put a paper-textarea element on page. Bind its value to a null variable and set it to required. Load page in Firefox.

Browsers Affected

alejost848 commented 6 years ago

I think I found the problem and it seems related to the box-shadow CSS property inside iron-autogrow-textarea. Checking inside the paper-input element I see there is a box-shadow: none; rule for the input, but that rule is missing from the textarea in iron-autogrow-textarea.

If I add the box-shadow: none; rule for the textarea in iron-autogrow-textarea the red line disappears and it works as expected.

@notwaldorf Is the box-shadow: none; rule intentionally left out in iron-autogrow-textarea or can it be added?