Skip to content

Commit

Permalink
Menu-Drop npm
Browse files Browse the repository at this point in the history
Working again on finalizing the legacy version of Menu-Drop so it can be loaded from npm.
  • Loading branch information
Offroaders123 committed Apr 28, 2023
1 parent 1dfa2a2 commit a5329d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class Editor {

readonly container = document.createElement("num-text");

readonly previewOption: Option = document.createElement("li");
readonly previewOption: MenuDropOption = document.createElement("li");

declare readonly value;
declare readonly isOpen;
Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ document.body.addEventListener("drop",event => {
});
});

for (const menu of app_menubar.querySelectorAll<MenuDropElement>("menu-drop")){
for (const menu of app_menubar.querySelectorAll("menu-drop")){
menu.addEventListener("pointerenter",event => {
if (event.pointerType !== "mouse") return;
if (app_menubar.querySelectorAll("menu-drop:not([data-alternate])[data-open]").length === 0 || menu.matches("[data-alternate]") || menu.matches("[data-open]")) return;
Expand Down

0 comments on commit a5329d0

Please sign in to comment.