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

Fixed bug where switching tab causes loss of focus on editor #687

Merged
merged 1 commit into from
Jan 31, 2022
Merged

Fixed bug where switching tab causes loss of focus on editor #687

merged 1 commit into from
Jan 31, 2022

Conversation

synle
Copy link
Contributor

@synle synle commented Jan 20, 2022

Problem

Currently if you have multiple tabs, switching to other tab does not automatically focus on the ace editor (used for query). Though the editor itself has a caret indicator saying it's focused on. So it is kind of confusing.

I checked the code and found that there is a autoFocus={true} property set on the react-ace, but it's not working properly when switching tab.

Screenshots

image

Notice the caret at the end of the select statement
image

@MasterOdin MasterOdin changed the title Fixed a minor issue where switching query tab causes a loss of focus on the ace editor. Fixed bug where switching tab causes loss of focus on editor Jan 31, 2022
@MasterOdin MasterOdin merged commit 08c6d76 into sqlectron:main Jan 31, 2022
@MasterOdin
Copy link
Member

Thanks!

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.

None yet

2 participants