fix: modal src should not be null

See: FoundKeyGang/FoundKey#40 (comment)
This commit is contained in:
Norm 2022-07-30 16:59:10 -04:00 committed by Gitea
parent 09b844035c
commit 15ac0fb303

View file

@ -31,7 +31,7 @@ type ModalTypes = 'popup' | 'dialog' | 'dialog:top' | 'drawer';
const props = withDefaults(defineProps<{
manualShowing?: boolean | null;
anchor?: { x: string; y: string; };
src?: HTMLElement | null;
src?: HTMLElement;
preferType?: ModalTypes | 'auto';
zPriority?: 'low' | 'middle' | 'high';
noOverlap?: boolean;