nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

Webview reloads after being moved through the DOM.

Open Sunvas opened this issue 3 years ago • 1 comments

NWJS Version : 0.63 Operating System : Windows

Assume, we have window with jQuery attached and HTML code like this:

<webview src="https://google.com"></webview>
<div></div>

<button>Move it</button>
<script>
$("button").click(function(){
	$("webview").insertAfter("div");
});
</script>

After clicking on button, I'm expecting that

Expected behavior

webview will be just placed after <div> ,

Actual behavior

but after being moved it also unexpectedly reloads.

Sunvas avatar Apr 14 '22 01:04 Sunvas

May be fixed by moveBefore()

https://chromestatus.com/feature/5135990159835136

DanielHerr avatar Jan 30 '25 20:01 DanielHerr