PolymerElements / paper-input

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

paper-textarea with auto-validate and initial value is broken in Firefox 57 #601

Open jab opened 6 years ago

jab commented 6 years ago

Description

In Firefox 57, <paper-textarea auto-validate value="foo"></paper-textarea> is broken: when you click inside the textarea to try to edit the text, it is not editable.

Looking in the console, this line in iron-autogrow-textarea.html is causing TypeError: this.$ is undefined.

screen shot 2017-12-13 at 23 00 06

If you remove the value="foo" or the auto-validate, the problem goes away, as expected based on https://github.com/PolymerElements/paper-input/blob/f64825d59dda77bc9808c244ca15dd11649d1512/paper-input-container.html#L518-L520

Expected outcome

The paper-textarea should work in Firefox 57 just like it works in other supported browsers.

Actual outcome

The paper-textarea is broken (e.g. not editable) and an error is thrown in the console.

Live Demo

minimal repro: http://jsbin.com/kiyuxanava/edit?html,output

Steps to reproduce

  1. Put a <paper-textarea auto-validate value="foo"></paper-textarea> element in the page.
  2. Open the page in Firefox 57.
  3. Click the paper-textarea element.

Browsers Affected

@notwaldorf, any ideas on this one? Thanks for taking a peek if you get a chance! 😊

fat-crienturu commented 6 years ago

Could somebody please look into this? It's affecting other browsers, not just Firefox. I think OP didn't create a pull request, but he made a proposed workaround. https://github.com/jab/iron-autogrow-textarea/commit/72a059320cd279c958774850ca8d36aa42c82392

ismarslomic commented 2 years ago

Still experiencing this issue