More TS fixes.
This commit is contained in:
parent
6b566d8b7a
commit
795df854af
|
@ -4,7 +4,7 @@
|
||||||
import type { UIEvent } from "@budibase/types"
|
import type { UIEvent } from "@budibase/types"
|
||||||
|
|
||||||
export let value: string | null = null
|
export let value: string | null = null
|
||||||
export let placeholder = null
|
export let placeholder: string | null = null
|
||||||
export let type = "text"
|
export let type = "text"
|
||||||
export let disabled = false
|
export let disabled = false
|
||||||
export let id = null
|
export let id = null
|
||||||
|
@ -12,8 +12,8 @@
|
||||||
export let updateOnChange = true
|
export let updateOnChange = true
|
||||||
export let quiet = false
|
export let quiet = false
|
||||||
export let align: string | null = null
|
export let align: string | null = null
|
||||||
export let autofocus = false
|
export let autofocus: boolean | null = false
|
||||||
export let autocomplete = null
|
export let autocomplete: string | null = null
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
if (disabled) return
|
if (disabled) return
|
||||||
focus = autofocus
|
focus = autofocus || false
|
||||||
if (focus) {
|
if (focus) {
|
||||||
await tick()
|
await tick()
|
||||||
field.focus()
|
field.focus()
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
export let error = null
|
export let error = null
|
||||||
export let updateOnChange = true
|
export let updateOnChange = true
|
||||||
export let quiet = false
|
export let quiet = false
|
||||||
export let autofocus
|
export let autofocus: boolean | null = null
|
||||||
export let autocomplete
|
export let autocomplete: string | null = null
|
||||||
export let helpText = null
|
export let helpText = null
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
Loading…
Reference in New Issue