-
Notifications
You must be signed in to change notification settings - Fork 879
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix queryAssignedElements decorator legacy browser compatibility (#2392)
Fix `@queryAssignedElements` decorator so it is compatible with legacy browsers. Uses `HTMLSlotElement.assignedElements` if available with a graceful fallback on `HTMLSlotElement.assignedNodes` which is supported by polyfills. Co-authored-by: Andrew Jakubowicz <ajakubowicz@google.com>
- Loading branch information
1 parent
4a5369c
commit dc3301c
Showing
3 changed files
with
35 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@lit/reactive-element': patch | ||
--- | ||
|
||
Fix `@queryAssignedElements` decorator so it is compatible with legacy browsers. | ||
Uses `HTMLSlotElement.assignedElements` if available with a graceful fallback | ||
on `HTMLSlotElement.assignedNodes` which is supported by polyfills. |
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