Skip to content

Commit

Permalink
fix(editor): component name for the mobile menu is incorrect (#9604)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzj3720 committed Jan 9, 2025
1 parent cac0b7f commit f46a7a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export class MobileMenuComponent

declare global {
interface HTMLElementTagNameMap {
'affine-menu-mobile': MobileMenuComponent;
'mobile-menu': MobileMenuComponent;
}
}

Expand Down
2 changes: 1 addition & 1 deletion blocksuite/affine/components/src/context-menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class Menu {

constructor(public options: MenuOptions) {
this.menuElement = IS_MOBILE
? document.createElement('affine-menu-mobile')
? document.createElement('mobile-menu')
: document.createElement('affine-menu');
this.menuElement.menu = this;

Expand Down

0 comments on commit f46a7a0

Please sign in to comment.