fix(web): prevent resetting date input when entering 0 (#7415)

* fix(web): prevent resetting date input when entering 0

* resolve conflict

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Michel Heusschen 2024-02-27 04:07:49 +01:00 committed by GitHub
parent 99a002b947
commit 4272b496ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 35 additions and 6 deletions

View file

@ -4,6 +4,7 @@
import FullScreenModal from '../shared-components/full-screen-modal.svelte';
import { mdiCake } from '@mdi/js';
import Icon from '$lib/components/elements/icon.svelte';
import DateInput from '../elements/date-input.svelte';
export let birthDate: string;
@ -37,7 +38,7 @@
<form on:submit|preventDefault={() => handleSubmit()} autocomplete="off">
<div class="m-4 flex flex-col gap-2">
<input
<DateInput
class="immich-form-input"
id="birthDate"
name="birthDate"