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

Fix Chat section text inputs focus issues #238

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

jmbejar
Copy link
Collaborator

@jmbejar jmbejar commented Aug 29, 2024

A problem was introduced in #236 where it is impossible to write in several text inputs in the Chat section interface.
This was happening because the key_focus was always set to the main prompt input.

Here we reimplemented the desired behavior (autofocus the prompt input when a new chat is created or we switch between chats) without messing with other text inputs (such as System Prompt, Stop, inline edition of chat messages, etc)

@jmbejar jmbejar requested a review from joulei August 29, 2024 01:43
@jmbejar jmbejar merged commit 3ec84a3 into dev Aug 29, 2024
5 checks passed
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.

2 participants