diff --git a/.changes/child-windows-macos.md b/.changes/child-windows-macos.md new file mode 100644 index 000000000000..ce73b0205fe2 --- /dev/null +++ b/.changes/child-windows-macos.md @@ -0,0 +1,7 @@ +--- +"tauri": "patch:bug" +"tauri-runtime-wry": "patch:bug" +--- + +Fix child webviews on macOS and Windows. + diff --git a/crates/tauri-runtime-wry/src/lib.rs b/crates/tauri-runtime-wry/src/lib.rs index bde9d3ccd7fd..12629db18420 100644 --- a/crates/tauri-runtime-wry/src/lib.rs +++ b/crates/tauri-runtime-wry/src/lib.rs @@ -4364,7 +4364,7 @@ fn create_webview( target_os = "ios", target_os = "android" ))] - WebviewKind::WindowChild => webview_builder.build(&window), + WebviewKind::WindowChild => webview_builder.build_as_child(&window), WebviewKind::WindowContent => { #[cfg(any( target_os = "windows",