Skip to content

High performance self-hosted photo and video management solution.

fix(web): emit updated date when pressing enter (#9640)

Lukas61b850f0ceea
diff --git a/web/src/lib/components/elements/date-input.svelte b/web/src/lib/components/elements/date-input.svelte
index 1f621b2464..ccd405c934 100644
--- a/web/src/lib/components/elements/date-input.svelte
+++ b/web/src/lib/components/elements/date-input.svelte
@@ -17,4 +17,9 @@
{value}
on:input={(e) => (updatedValue = e.currentTarget.value)}
on:blur={() => (value = updatedValue)}
+ on:keydown={(e) => {
+ if (e.key === 'Enter') {
+ value = updatedValue;
+ }
+ }}
/>