mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: input number component.
This commit is contained in:
1 parent
e6b2f1a19c
commit
e542431920
2 files changed
+4
-16
No files matched your search
@@ -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'}
|
||||
|
||||
+3
-4
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user