Skip to content

fix: Remove autoFocus from cliparea to prevent scroll on page load#9526

Open
AAAuzins wants to merge 1 commit intoepam:masterfrom
molport:master
Open

fix: Remove autoFocus from cliparea to prevent scroll on page load#9526
AAAuzins wants to merge 1 commit intoepam:masterfrom
molport:master

Conversation

@AAAuzins
Copy link

Removed autoFocus from the cliparea textarea in cliparea.tsx.
On page load, browsers scroll to bring any focused element into view — when Ketcher is embedded and not fully visible in the viewport (e.g. small screens), this causes unwanted scroll.
This also removes a deliberate jsx-a11y/no-autofocus eslint suppression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant