From 7af90fee976a43b7a85c1e326e20ee21b5447921 Mon Sep 17 00:00:00 2001 From: diegocardoso Date: Mon, 25 May 2020 14:24:44 +0300 Subject: [PATCH] refactor: use shadowRoot instead of root --- src/vaadin-text-field-mixin.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vaadin-text-field-mixin.html b/src/vaadin-text-field-mixin.html index ae1f56ad..a60d904b 100644 --- a/src/vaadin-text-field-mixin.html +++ b/src/vaadin-text-field-mixin.html @@ -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