josdejong / svelte-jsoneditor

A web-based tool to view, edit, format, repair, query, transform, and validate JSON
https://jsoneditoronline.org
Other
820 stars 108 forks source link

content menu in smaller screen affects scroll #257

Closed nitzcard closed 6 months ago

nitzcard commented 1 year ago

In small screens, when we open the context menu it moves the scroll and we lose where we've been. Could you please check it? Maybe find a way to keep the scroll static.

josdejong commented 1 year ago

How can I reproduce this issue exactly?

I can imagine this has to do with the focus being set to the first button in the context menu when it opens.