Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Input date with max attribute keyboard issue #585

@StagnantIce

Description

@StagnantIce

{...$$restProps} clear year in date field, if you try write it in field by keyboard.

<script>
	import Input from './Input.svelte';

	const day18YearsAgo = new Date();
	let data = '';
</script>

            <Input
                type="date"
                bind:value={data}
                max={day18YearsAgo.toISOString().slice(0, 10)}
            />

Actual result:
You can't write year by keyabord

Expected result
You can write year by keyboard

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions