Can't extends custom elements
authorCyperghost <olaf_schmitz_1@t-online.de>
Fri, 18 Oct 2024 12:15:41 +0000 (14:15 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Fri, 18 Oct 2024 12:15:41 +0000 (14:15 +0200)
ts/WoltLabSuite/Core/Component/EmojiPicker/woltlab-core-emoji-picker.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/EmojiPicker/woltlab-core-emoji-picker.js

index 4398f8ce1ec9c30ba7d05e36c6d98bffa2710ff8..f3cadfebc8c69349e193552e71c49479aeb86ab9 100644 (file)
@@ -29,8 +29,4 @@ export class WoltlabCoreEmojiPicker extends Picker {
   }
 }
 
-void customElements.whenDefined("emoji-picker").then(() => {
-  customElements.define("woltlab-core-emoji-picker", WoltlabCoreEmojiPicker, {
-    extends: "emoji-picker",
-  });
-});
+customElements.define("woltlab-core-emoji-picker", WoltlabCoreEmojiPicker);
index 43b89a01e531b4a73c7177846e9043947401cd8e..194d79455b9d9c3f394d420acd335eabf631e723 100644 (file)
@@ -24,9 +24,5 @@ define(["require", "exports", "emoji-picker-element", "WoltLabSuite/Core/Compone
         }
     }
     exports.WoltlabCoreEmojiPicker = WoltlabCoreEmojiPicker;
-    void customElements.whenDefined("emoji-picker").then(() => {
-        customElements.define("woltlab-core-emoji-picker", WoltlabCoreEmojiPicker, {
-            extends: "emoji-picker",
-        });
-    });
+    customElements.define("woltlab-core-emoji-picker", WoltlabCoreEmojiPicker);
 });