Skip to content

this.$.* isn't set if an element * is inside a dom-if block and the condition evaluates to true #1513

Closed
@blasten

Description

If I have the following code:

<template is="dom-if" if="[[editable]]">
      <paper-input id="input"></paper-input>
</template>

but this.$.input is always undefined even if editable === true. I found a workaround using this.$$('#input').

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions