More TS fixes.

This commit is contained in:
mike12345567 2025-01-29 17:09:40 +00:00
parent 6b566d8b7a
commit 795df854af
2 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
import type { UIEvent } from "@budibase/types"
export let value: string | null = null
export let placeholder = null
export let placeholder: string | null = null
export let type = "text"
export let disabled = false
export let id = null
@ -12,8 +12,8 @@
export let updateOnChange = true
export let quiet = false
export let align: string | null = null
export let autofocus = false
export let autocomplete = null
export let autofocus: boolean | null = false
export let autocomplete: string | null = null
const dispatch = createEventDispatcher()
@ -71,7 +71,7 @@
onMount(async () => {
if (disabled) return
focus = autofocus
focus = autofocus || false
if (focus) {
await tick()
field.focus()

View File

@ -13,8 +13,8 @@
export let error = null
export let updateOnChange = true
export let quiet = false
export let autofocus
export let autocomplete
export let autofocus: boolean | null = null
export let autocomplete: string | null = null
export let helpText = null
const dispatch = createEventDispatcher()