PolymerElements / iron-autogrow-textarea

Textarea that grows in height as more lines of input are entered
https://webcomponents.org/element/PolymerElements/iron-autogrow-textarea
19 stars 48 forks source link

focus() still not working #92

Open nylki opened 7 years ago

nylki commented 7 years ago

Description

The iron-autogrow-textarea still doesn't react to element.focus(). I have seen that there was a merged PR (https://github.com/PolymerElements/paper-input/issues/129) in paper-input which was linked in #34 , however this element does not inherit from paper-input as far as I see?

Expected outcome

The text area should get the cursor focus. When changing it to the native textarea the focus() works fine.

Steps to reproduce

  1. Put multiple iron-autogrow-textarea elements in the page. And programatically change the cursor focus to any element via focus()
  2. Open the page in a web browser.

Hacky Workaround

Instead of this.$.myIronAutogrowTextarea.focus(); use this.$.myIronAutogrowTextarea.$$('textarea').focus();

Example

Browsers Affected

Tested in latest stable Chrome.

felixzapata commented 7 years ago

hi, is there any news about this issue?

floribon commented 5 years ago

Hi, is there any news about this issue?