Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to scroll to bottom of editor? #846

Open
byronpendason opened this issue Jan 2, 2024 · 0 comments
Open

How to scroll to bottom of editor? #846

byronpendason opened this issue Jan 2, 2024 · 0 comments

Comments

@byronpendason
Copy link

byronpendason commented Jan 2, 2024

I am working on an app where the editor is in one "tab" (the tabs are just buttons that set the display on all other tabs as "none" and sets the display on the current tab as "block"). The editor is the default open tab. When someone goes to another tab, and then returns to the editor tab, I want to set the editor as the focus and place the cursor at the bottom of the editor textarea.

How do I set the editor as the focus and set the cursor at the bottom of the editor?

Edit: I know the autofocus sets it to focus at the editor's creation, but I'm trying to autofocus to it after changing the display from "none" to "block" when switching back to that tab.

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

No branches or pull requests

1 participant