I forgot to mention that my workaround is currently a

            setTimeout(function(){
                this.$.edit.nextElementSibling.focus()
            }.bind(this), 1000)

But it doesn't feel quite right.

On Saturday, January 17, 2015 at 11:34:13 AM UTC+1, alessandro meyer wrote:
>
> Hey there 
>
> I have the following situation
>
>     <template id="edit" bind if="{{ editable }}">
>       <input id="editor" on-keyup="{{exit}}" value={{value}} />
>     </template>
>
> And on editable being set to true, id like to focus() the input field how 
> do I do that? Because the stuff in the template doesn't seem to be 
> accessible earlier as I can't reach the <input> until it is visible.
>
> Thanks!
>
> Cheers
> Alessandro
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/835b7379-46fc-4387-95c9-bf4725a064dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to