You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: