fix: input number component.

This commit is contained in:
Darshan committed 2025-01-11 10:04:19 +05:30
1 parent e6b2f1a19c
commit e542431920
2 files changed
+4 -16

No files matched your search

+1 -12
View File
@@ -21,18 +21,6 @@
let error: string;
onMount(() => {
if (autofocus) {
addInputFocus();
}
});
export function addInputFocus() {
if (element) {
element.focus();
}
}
const handleInvalid = (event: Event & { currentTarget: EventTarget & HTMLInputElement }) => {
event.preventDefault();
@@ -71,6 +59,7 @@
{label}
{step}
{nullable}
bind:value
autofocus={autofocus || undefined}
helper={error}
state={error ? 'error' : 'default'}
@@ -10,11 +10,10 @@
import { BuildRuntime, Framework, type Models } from '@appwrite.io/console';
export let site: Models.Site;
let timeout = 0;
onMount(async () => {
timeout = site.timeout;
console.log(timeout);
});
onMount(async () => (timeout = site.timeout));
async function updateTimeout() {
try {