Hey all, `TextField` acting weird. Multiple char...
# compose-web
r
Hey all,
TextField
acting weird. Multiple characters per one keystroke added after browser window is resized.
Copy code
var codeInput by remember { mutableStateOf("") }
TextField(
   value = codeInput,
   onValueChange = {
      codeInput = it
   },
)
anyone else having the same issue?
o
Are you using K/Js with
BrowserViewportWindow?
If so, see https://github.com/OliverO2/compose-counting-grid/issues/3
r
I am using
CanvasBasedWindow
but i guess it is the same issue
o
Maybe it is. Could you file an issue in compose-multiplatform along with a simple reproducer?
r
sure, will create a simplified project and share it
👍 1
opened an issue in compose-multiplatform - https://github.com/JetBrains/compose-multiplatform/issues/3433
thank you color 1
a
It's probably a known issue and already fixed by https://github.com/JetBrains/compose-multiplatform-core/pull/692
Yep, it's not reproducible on 15.0-beta
thank you color 1
o
Now fixed here as well for K/Js with `BrowserViewportWindow`: https://github.com/OliverO2/compose-counting-grid/issues/3
z
Is the text field's cursor working now?
o
The -wasm build doesn't include the fix for multiple event listeners issue yet. But it will be fixed there too.
Is the text field's cursor working now?
No, it's not done yet.
👍 1
o
@Oleksandr Karpovich [JB] what do you think about adding BrowserViewportWindow to Compose Multiplatform as an interim solution for K/Js until there is sufficient library support for the wasm target?
👀 1
o
Hey Oliver! let's discuss it in pm
👍 1