Skip to content

When the jsfiddle browser tab loses focus, the code editor caret returns to the top of the code textarea #2305

@ryangriggs

Description

@ryangriggs

If the caret is positioned within the JS editor, then you change to another tab or another app and subsequently return to the jsfiddle tab, the caret moves to the top of the JS box. Highlighting is also lost.

Expected behavior: the caret should remain in the place where it was left when the tab lost focus. Highlighted text should remain as it was before losing focus.

Test environment:
Windows/Firefox 145.0.2
Windows/Chrome 142.0.7444.176

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions