How are you trying to access it? Can't you put a container around it and
use this.$.container.getElementById('editor'); ? As you say, the element
doesn't exist, so you can't use polymer's nice '$' to access it...iinm.
Perhaps you don't need the container, and can use the template's ID?

Max.

On Sat Jan 17 2015 at 18:34:15 alessandro meyer <[email protected]>
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/a7654552-68be-4dd9-9e20-a0ff1b0c05ab%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/a7654552-68be-4dd9-9e20-a0ff1b0c05ab%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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/CAMZCrPjUw%2BFGxUW2PMWuree6OhgF%2BNDpp%3DLGHC1k7195TxR0DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to