Skip to content

Commit

Permalink
feat(cxl-ui): [cxl-notification] document renderer function
Browse files Browse the repository at this point in the history
  • Loading branch information
anoblet committed Dec 21, 2022
1 parent bcb980d commit 845ee16
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/cxl-ui/src/components/cxl-notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ export class CXLNotification extends Notification {
return 'cxl-notification';
}

/**
* Since `template` elements are no longer supported by Vaadin, provide a default renderer which appends all child nodes to the notification root element.
*
* @param {HTMLElement} root
* @returns
*
* @see https://cxlworld.slack.com/archives/C01JABH8AHX/p1662121897793169
*/
renderer(root) {
if (root.firstElementChild) {
return;
Expand Down

0 comments on commit 845ee16

Please sign in to comment.