tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] double char input in multiwebview on macos

Open thewh1teagle opened this issue 1 year ago • 3 comments

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
  1. Clone tauri and execute the following:
cargo run --example multiwebview --features="unstable"
  1. Navigate to twitter.com with location.href = "https://twitter.com/" and login using username and password
  2. Try to create a post and input the first character
  3. 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

thewh1teagle avatar Jan 30 '24 11:01 thewh1teagle

@FabianLars Any thoughts?

The doubled-char also happens after 'return' or '@'

ImageDeeply avatar Feb 17 '24 11:02 ImageDeeply

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

thewh1teagle avatar Mar 15 '24 14:03 thewh1teagle

@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.)

ImageDeeply avatar Mar 15 '24 14:03 ImageDeeply