Parcourir la source

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

Tony il y a 1 an
Parent
commit
3c17fb64fd

+ 5 - 0
.changes/api-reparent-focus.md

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

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
core/tauri/scripts/bundle.global.js


+ 1 - 1
tooling/api/src/webview.ts

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

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff