tauri
tauri copied to clipboard
[bug] double char input in multiwebview on macos
Describe the bug
When using multiwebview
where the webview added as_child
to the window,
If I focus the input in twitter.com
and creating a post, then when I write the first character it written twice (also after delete and rewrite)
It doesn't happen in normal webview
where it doesn't added as_child
, eg: in helloworld
example.
Reproduction
I couldn't found what special in that input
field. so need to reproduce on twitter
user agent must changed so twitter.com will load
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36
- Clone
tauri
and execute the following:
cargo run --example multiwebview --features="unstable"
- Navigate to twitter.com with
location.href = "https://twitter.com/"
and login using username and password - Try to create a post and input the first character
- Do again with
helloworld
example and see that it doesn't happen there
cargo run --example helloworld
Expected behavior
When writing the first char in the input only one should written
Full tauri info
output
Testing commits
tauri: 38b8e672372c65ad0788d39e154089dbb98e495d
Stack trace
No response
Additional context
It doesn't happen in wry
multiwebview
example so most probably it's in tauri
It doesn't happen on Windows 11
It doesn't happen in helloworld example
@FabianLars Any thoughts?
The doubled-char also happens after 'return' or '@'
It still happens in latest tauri (but not in wry) I created repro repository with tiny sample and a video which shows the issue so easier to understand https://github.com/thewh1teagle/tauri-doublechar-issue
@FabianLars This issue is a blocker for us. Would it make sense for me to look for someone on Fiverr or similar to fix? Or, I'm open to other suggestions! (Tauri is great. We've made a few very minor contributions and of course would submit this too.)