1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-22 14:29:36 +02:00

refactor: Update date input fields with min and max values

This commit is contained in:
Sean Morley 2024-07-31 11:01:41 -04:00
parent 4e44203239
commit 17498121a3
6 changed files with 45 additions and 2 deletions

View file

@ -7,6 +7,9 @@
import { addToast } from '$lib/toasts';
let modal: HTMLDialogElement;
export let startDate: string | null = null;
export let endDate: string | null = null;
console.log(adventureToEdit.id);
let originalName = adventureToEdit.name;
@ -202,6 +205,8 @@
type="date"
id="date"
name="date"
min={startDate || ''}
max={endDate || ''}
bind:value={adventureToEdit.date}
class="input input-bordered w-full max-w-xs mt-1"
/>