Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input date with max attribute keyboard issue #585

Open
StagnantIce opened this issue Jan 7, 2024 · 2 comments
Open

Input date with max attribute keyboard issue #585

StagnantIce opened this issue Jan 7, 2024 · 2 comments

Comments

@StagnantIce
Copy link

{...$$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

@StagnantIce
Copy link
Author

If make max property - we can avoid this behavior.

StagnantIce pushed a commit to StagnantIce/sveltestrap that referenced this issue Jan 7, 2024
StagnantIce pushed a commit to StagnantIce/sveltestrap that referenced this issue Jan 7, 2024
StagnantIce pushed a commit to StagnantIce/sveltestrap that referenced this issue Jan 7, 2024
StagnantIce pushed a commit to StagnantIce/sveltestrap that referenced this issue Jan 7, 2024
@StagnantIce
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant