Skip to content

Commit

Permalink
refactor: use shadowRoot instead of root
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoCardoso committed May 25, 2020
1 parent ab47ab0 commit 7af90fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vaadin-text-field-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@

/** @private */
_onHelperSlotChange() {
const slottedNodes = this.root.querySelector(`[name="helper"]`).assignedNodes();
const slottedNodes = this.shadowRoot.querySelector(`[name="helper"]`).assignedNodes();
// Only has slotted helper if not a text node
// Text nodes are added by the helperText prop and not the helper slot
// The filter is added due to shady DOM triggering this slotchange event on helperText prop change
Expand Down

0 comments on commit 7af90fe

Please sign in to comment.