КС
Size: a a a
КС
КС
AP
AP
AP
❌
A
AP
DK
PM
AP
PM
КС
<script lang="ts">
export let value: string | number = '';
export let type = 'text';
function handleInput(event: InputEvent): void {
const { value: inputVal } = event.target as HTMLInputElement;
value = type === 'number' ? +inputVal : inputVal;
}
</script>
<input {type} {value} on:input={handleInput} on:input />
^ошибка тут
A
AP
A
<script lang="ts">
export let value: string | number = '';
export let type = 'text';
function handleInput(event: InputEvent): void {
const { value: inputVal } = event.target as HTMLInputElement;
value = type === 'number' ? +inputVal : inputVal;
}
</script>
<input {type} {value} on:input={handleInput} on:input />
^ошибка тут
КС
AP
AP
A
<script lang="ts">
export let value: string | number = '';
export let type = 'text';
function handleInput(event: InputEvent): void {
const { value: inputVal } = event.target as HTMLInputElement;
value = type === 'number' ? +inputVal : inputVal;
}
</script>
<input {type} {value} on:input={handleInput} on:input />
^ошибка тут