Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use flattened nodes on helper slot
A 3rd custom element using `vaadin-text-field` and defining a slot area for the `vaadin-text-field`'s helper slot was making `vaadin-text-field` see the slot element as a slotted contend and setting `has-helper="slotted"` to itself. This change uses flattened nodes to check the presence of slotted elements on `vaadin-text-field` `helper` slot. In this change - use `FlattenedNodesObserver` instead of `slotchange` event - use `FlattenedNodesObserver.getFlattenedNodes` to get slot children - apply changes to tests - remove checks for unsupported types
- Loading branch information
1 parent
09fc63a
commit 4dd463e
Showing
3 changed files
with
91 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters