修复get.itemtype判断按钮类型
This commit is contained in:
parent
7ff73e8420
commit
8931d4c357
|
@ -1645,7 +1645,7 @@ export class Get extends Uninstantable {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (obj instanceof lib.element.Button) return 'button';
|
||||
if (obj instanceof lib.element.Button || (obj instanceof HTMLDivElement && obj.classList.contains('button'))) return 'button';
|
||||
if (obj instanceof lib.element.Card) return 'card';
|
||||
if (obj instanceof lib.element.Player) return 'player';
|
||||
if (obj instanceof lib.element.Dialog) return 'dialog';
|
||||
|
|
Loading…
Reference in New Issue