Replace calls to crypto.randomUUID

This commit is contained in:
Danny McGee
2024-03-08 19:58:20 -05:00
parent f347ac783f
commit f07ac0c099
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import { customElement, property } from "lit/decorators.js";
import { ifDefined } from "lit/directives/if-defined.js";
import { createRef, ref } from "lit/directives/ref.js";
import { styleMap } from "lit/directives/style-map.js";
import { v4 as uuid } from "uuid";
import panelStyles from "./menu.element.scss?inline";
@@ -31,7 +32,7 @@ export class MenuElement extends LitElement {
@inject(OVERLAY_PROVIDER)
overlay!: OverlayProvider;
#menuId = crypto.randomUUID();
#menuId = uuid();
#slotRef = createRef<HTMLSlotElement>();
#panelRef = createRef<MenuPanelElement>();
#handle?: WeakRef<OverlayHandle>;