KevinnZou / compose-webview-multiplatform

WebView for JetBrains Compose Multiplatform
https://kevinnzou.github.io/compose-webview-multiplatform/
Apache License 2.0
305 stars 39 forks source link

Search Bug #135

Open 1006245347 opened 1 month ago

1006245347 commented 1 month ago

link -> https://www.baidu.com , when you search click textfield ,it will refresh.

set custom density,fillMaxSize cannot work.

搜索框一点就刷新啦啊

KevinnZou commented 1 month ago

@1006245347 Thanks for your feedback! Which platform are you running on? It works well on my Android device.

1006245347 commented 4 weeks ago

android is ok, iOS cannot not work, I try http://wfserver.gree.com/sso/(S(ss2tmixwjcvqebnq4qmn0ahy))/oauth/show?appid=6702ec12-a538-4335-ab88-c2a6174b8800

if you touch textfield in webpage,it can be show

KevinnZou commented 4 weeks ago

@1006245347 Both the URL and baidu.com are working properly on my Android and iOS devices. I believe this issue is related to either the website or the device. This library does not intercept text field focus.

1006245347 commented 3 weeks ago

企业微信截图_20195f3f-4c79-4f6f-89be-544eaddb91bc

if textfield in websit could be refresh when you click if ,you click the 'sign in' ,your webviewState should be filter textfield.

KevinnZou commented 3 weeks ago

@1006245347 I am not sure if I understand you correctly. But it still works well on my side with "sign in" clicked.

截屏2024-04-24 14 47 07
1006245347 commented 3 weeks ago

android no problem, iOS can't work

1006245347 commented 3 weeks ago

wait a mintues, I show you a video

1006245347 commented 3 weeks ago

iOS bebug ,

https://github.com/KevinnZou/compose-webview-multiplatform/assets/24426708/bcf09720-73a2-4334-b68d-6f20ea25bf85

KevinnZou commented 3 weeks ago

@1006245347 It's wired. It works well on my iOS device. It seems that you are running your own test code. Could you try to run the sample in this library and see if the problem still exists?

1006245347 commented 3 weeks ago

voyager-navigator = { module = "cafe.adriel.voyager:voyager-navigator", version.ref = "voyager" } voyager-tab-navigator = { module = "cafe.adriel.voyager:voyager-tab-navigator", version.ref = "voyager" } voyager-bottom-navigator = { module = "cafe.adriel.voyager:voyager-bottom-sheet-navigator", version.ref = "voyager" } voyager-transitions = { module = "cafe.adriel.voyager:voyager-transitions", version.ref = "voyager" } voyager-koin = { module = "cafe.adriel.voyager:voyager-koin", version.ref = "voyager" } voyager = "1.0.0"

I found the bug,your demo just one page,but many pages in our demo ,I add voyager navigator.

object LoginSingleScreen:Screen{ @Composable override fun Content() { retryWeb() }

// Navigator(LoginSingleScreen) //bug happen // retryWeb() //your sample code ,no problem in iOS

1006245347 commented 3 weeks ago

Another question,are you chinese? >-<