1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-23 14:59: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

@ -24,7 +24,9 @@
import Wikipedia from '~icons/mdi/wikipedia';
import ActivityComplete from './ActivityComplete.svelte';
import { appVersion } from '$lib/config';
import AdventureCard from './AdventureCard.svelte';
export let startDate: string | null = null;
export let endDate: string | null = null;
let newAdventure: Adventure = {
id: NaN,
@ -273,6 +275,8 @@
type="date"
id="date"
name="date"
min={startDate || ''}
max={endDate || ''}
bind:value={newAdventure.date}
class="input input-bordered w-full max-w-xs mt-1"
/>