Fix Webview.reparent pointing to wrong Rust API (#10277)

This commit is contained in:
Tony 2024-07-14 19:20:56 +08:00 committed by GitHub
parent 6d965e9fbf
commit 3c17fb64fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
'@tauri-apps/api': 'patch:bug'
---
Fix `Webview.reparent` pointing to `set_webview_focus` instead of `reparent` Rust API

File diff suppressed because one or more lines are too long

View File

@ -500,7 +500,7 @@ class Webview {
* @returns A promise indicating the success or failure of the operation.
*/
async reparent(window: Window | WebviewWindow | string): Promise<void> {
return invoke('plugin:webview|set_webview_focus', {
return invoke('plugin:webview|reparent', {
label: this.label,
window: typeof window === 'string' ? window : window.label
})