mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
Fix Webview.reparent pointing to wrong Rust API (#10277)
This commit is contained in:
5
.changes/api-reparent-focus.md
Normal file
5
.changes/api-reparent-focus.md
Normal 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
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user