OHOS: Set the correct input type for url field (#40862)

This makes it mostly that the correct keyboard will be selected and we
don't start with an uppercase letter.

Testing: Compiled on OHOS and looked on the phone.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
Narfinger
2025-11-25 01:11:46 +09:00
committed by GitHub
parent 64a3abfe67
commit 8215c5227a

View File

@@ -101,7 +101,7 @@ struct Index {
this.xComponentContext?.goForward()
})
TextInput({ placeholder: 'URL', text: $$this.urlToLoad })
.type(InputType.Normal)
.type(InputType.URL)
.width('76%')
.onChange((value) => {
this.urlToLoad = value