Compare commits

...

1 Commits

Author SHA1 Message Date
Levente Orban
e5be4b5589 hotfix: prpevent to use arrows in datepicker 2025-11-02 20:44:58 +01:00
2 changed files with 10 additions and 0 deletions

View File

@@ -139,6 +139,11 @@
bind:value={eventData.date}
min={today}
class="border-dark-300 w-full rounded-sm border-2 bg-white px-4 py-3 text-slate-900 shadow-sm transition-all duration-200"
on:keydown={(e) => {
if (['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(e.key)) {
e.preventDefault();
}
}}
required
/>
{#if errors.date}

View File

@@ -162,6 +162,11 @@
bind:value={eventData.date}
min={today}
class="border-dark-300 w-full rounded-sm border-2 bg-white px-4 py-3 text-slate-900 shadow-sm transition-all duration-200"
on:keydown={(e) => {
if (['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(e.key)) {
e.preventDefault();
}
}}
required
/>
{#if errors.date}