|
|
@@ -1,5 +1,4 @@
|
|
|
<script lang="ts">
|
|
|
- import { Input } from "$lib/components/ui/input";
|
|
|
import { Button } from "$lib/components/ui/button";
|
|
|
import { Check, X } from "@lucide/svelte";
|
|
|
import { state as _state } from "$lib/state.svelte";
|
|
|
@@ -58,7 +57,6 @@
|
|
|
function clickOutsideCancel(node: HTMLElement) {
|
|
|
const onPointerDown = (event: PointerEvent) => {
|
|
|
if (!node.contains(event.target as Node)) {
|
|
|
- // Only blur if this element currently has focus
|
|
|
if (
|
|
|
node === document.activeElement ||
|
|
|
node.contains(document.activeElement)
|