mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(web): pasting coordinates (#11866)
This commit is contained in:
parent
0261f79c72
commit
5ef9a8ff8d
2 changed files with 23 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
<script lang="ts">
|
||||
import { clamp } from 'lodash-es';
|
||||
import type { ClipboardEventHandler } from 'svelte/elements';
|
||||
|
||||
export let id: string;
|
||||
export let min: number;
|
||||
|
|
@ -8,6 +9,7 @@
|
|||
export let required = true;
|
||||
export let value: number | null = null;
|
||||
export let onInput: (value: number | null) => void;
|
||||
export let onPaste: ClipboardEventHandler<HTMLInputElement> | undefined = undefined;
|
||||
</script>
|
||||
|
||||
<input
|
||||
|
|
@ -25,4 +27,5 @@
|
|||
}
|
||||
onInput(value);
|
||||
}}
|
||||
on:paste={onPaste}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue