TextField: minor type fix
This commit is contained in:
parent
994edfa22c
commit
189662b9e0
1 changed files with 3 additions and 3 deletions
|
@ -28,14 +28,14 @@ const TextField: Component<TextFieldProps> = (props) => {
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
if (hasContent()) {
|
if (hasContent()) {
|
||||||
field.classList.add("float-label");
|
field!.classList.add("float-label");
|
||||||
} else {
|
} else {
|
||||||
field.classList.remove("float-label");
|
field!.classList.remove("float-label");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
setHasContent(input.value.length > 0);
|
setHasContent(input!.value.length > 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
const onInputChange = (e: { currentTarget: HTMLInputElement }) => {
|
const onInputChange = (e: { currentTarget: HTMLInputElement }) => {
|
||||||
|
|
Loading…
Reference in a new issue