Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

focus() still not working #92

Open
nylki opened this issue Nov 27, 2016 · 2 comments
Open

focus() still not working #92

nylki opened this issue Nov 27, 2016 · 2 comments

Comments

@nylki
Copy link

nylki commented Nov 27, 2016

Description

The iron-autogrow-textarea still doesn't react to element.focus(). I have seen that there was a merged PR (PolymerElements/paper-input#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
Copy link

hi, is there any news about this issue?

@floribon
Copy link

floribon commented Jan 9, 2019

Hi, is there any news about this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants