From 86b94e213e7fbc2d462ba475d0f8c0194db3bf99 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Thu, 28 Jul 2022 15:47:39 -0400 Subject: [PATCH] fix: lint errors in modal.vue --- packages/client/src/components/ui/modal.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/ui/modal.vue b/packages/client/src/components/ui/modal.vue index 1abd41a51..9f3618367 100644 --- a/packages/client/src/components/ui/modal.vue +++ b/packages/client/src/components/ui/modal.vue @@ -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; + src?: HTMLElement | null; preferType?: ModalTypes | 'auto'; zPriority?: 'low' | 'middle' | 'high'; noOverlap?: boolean; @@ -102,7 +102,7 @@ const MARGIN = 16; const align = () => { if (props.src == null) return; if (type === 'drawer') return; - if (type == 'dialog') return; + if (type === 'dialog') return; if (content == null) return;