You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
this.$.* isn't set if an element * is inside a dom-if block and the condition evaluates to true #1513
This is by design and mentioned in the Polymer docs. $ supports only access to statically added elements (no if/repeat or imperatively added elements) .
I discovered this the hard way. It might be nice to add an additional note in the dom-if and dom-repat documentation warning developers about this, given how common usage of this.$. is in the examples I have seen.
If I have the following code:
but
this.$.inputis alwaysundefinedeven ifeditable === true. I found a workaround usingthis.$$('#input').