mirror of
https://github.com/hcengineering/platform.git
synced 2025-03-12 08:14:42 +00:00
EZQMS-403: Displatch value update from EditBox (#4114)
* EZQMS-403: Displatch value update from EditBox Signed-off-by: Anna No <anna.no@xored.com> * EZQMS-403: Displatch value update from EditBox Signed-off-by: Anna No <anna.no@xored.com> --------- Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
parent
610e9e5e0c
commit
32e39a3723
@ -84,7 +84,16 @@
|
|||||||
} else {
|
} else {
|
||||||
target.style.width = Math.max(text.clientWidth, 50) + 'px'
|
target.style.width = Math.max(text.clientWidth, 50) + 'px'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleInput (ev: Event): void {
|
||||||
|
const t: HTMLInputElement | EventTarget | null = ev.target
|
||||||
|
if (t !== null && t !== undefined) {
|
||||||
|
computeSize(t)
|
||||||
|
}
|
||||||
|
|
||||||
dispatch('input')
|
dispatch('input')
|
||||||
|
dispatch('value', value)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
@ -168,9 +177,7 @@
|
|||||||
bind:value
|
bind:value
|
||||||
placeholder={phTraslate}
|
placeholder={phTraslate}
|
||||||
{style}
|
{style}
|
||||||
on:input={(ev) => {
|
on:input={handleInput}
|
||||||
computeSize(ev.target)
|
|
||||||
}}
|
|
||||||
on:change
|
on:change
|
||||||
on:keydown
|
on:keydown
|
||||||
on:keypress
|
on:keypress
|
||||||
@ -185,9 +192,7 @@
|
|||||||
bind:value
|
bind:value
|
||||||
placeholder={phTraslate}
|
placeholder={phTraslate}
|
||||||
{style}
|
{style}
|
||||||
on:input={(ev) => {
|
on:input={handleInput}
|
||||||
computeSize(ev.target)
|
|
||||||
}}
|
|
||||||
on:change
|
on:change
|
||||||
on:keydown
|
on:keydown
|
||||||
on:keypress
|
on:keypress
|
||||||
@ -201,9 +206,7 @@
|
|||||||
bind:value
|
bind:value
|
||||||
placeholder={phTraslate}
|
placeholder={phTraslate}
|
||||||
{style}
|
{style}
|
||||||
on:input={(ev) => {
|
on:input={handleInput}
|
||||||
computeSize(ev.target)
|
|
||||||
}}
|
|
||||||
on:change
|
on:change
|
||||||
on:keydown
|
on:keydown
|
||||||
on:keypress
|
on:keypress
|
||||||
|
Loading…
Reference in New Issue
Block a user