When using the dialog HTML tag and calling the .showModal() method, it seems that when the modal content is longer than the dialog display area, the dialog will scroll automatically to the bottom on every open. Is there a clean way to suppress this behavior, so that the dialog content will stay at the very top on open?
document.getElementById("openDialog").addEventListener("click", () => document.getElementById("modal").showModal());
document.getElementById("closeDialog").addEventListener("click", () => document.getElementById("modal").close());
<button id="openDialog">Open</button>
<dialog id='modal'>
<h1>Hello world 1</h1>
<h1>Hello world 2</h1>
<h1>Hello world 3</h1>
<h1>Hello world 4</h1>
<h1>Hello world 5</h1>
<h1>Hello world 6</h1>
<h1>Hello world 7</h1>
<h1>Hello world 8</h1>
<h1>Hello world 9</h1>
<h1>Hello world 10</h1>
<button id="closeDialog">Close</button>
</dialog>