This currently only focuses the input when switching between chats and reloading the root page.
When i start a chat and then klick on "New Chat" in the Sidebar is somehow doesn't focus the input. @tjbck any ideas on this?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/941
**Author:** [@jannikstdl](https://github.com/jannikstdl)
**Created:** 2/27/2024
**Status:** ✅ Merged
**Merged:** 2/28/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `autofocus-chat`
---
### 📝 Commits (3)
- [`7c7e16c`](https://github.com/open-webui/open-webui/commit/7c7e16c382941cb3571a5b682cef0d0c217c3c68) added focus selector
- [`1d4d1dd`](https://github.com/open-webui/open-webui/commit/1d4d1ddbea8338a289efba8ea45898c401b580a4) revert
- [`260a8b8`](https://github.com/open-webui/open-webui/commit/260a8b8b83705ba3f3133a787dcd0dc6b82e1352) feat: chat input focus on new chat
### 📊 Changes
**4 files changed** (+16 additions, -8 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/components/chat/MessageInput.svelte` (+3 -0)
📝 `src/lib/components/layout/Sidebar.svelte` (+7 -8)
📝 `src/routes/(app)/+page.svelte` (+3 -0)
📝 `src/routes/(app)/c/[id]/+page.svelte` (+3 -0)
</details>
### 📄 Description
adresses #936
This currently only focuses the input when switching between chats and reloading the root page.
When i start a chat and then klick on "New Chat" in the Sidebar is somehow doesn't focus the input. @tjbck any ideas on this?
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/941
Author: @jannikstdl
Created: 2/27/2024
Status: ✅ Merged
Merged: 2/28/2024
Merged by: @tjbck
Base:
dev← Head:autofocus-chat📝 Commits (3)
7c7e16cadded focus selector1d4d1ddrevert260a8b8feat: chat input focus on new chat📊 Changes
4 files changed (+16 additions, -8 deletions)
View changed files
📝
src/lib/components/chat/MessageInput.svelte(+3 -0)📝
src/lib/components/layout/Sidebar.svelte(+7 -8)📝
src/routes/(app)/+page.svelte(+3 -0)📝
src/routes/(app)/c/[id]/+page.svelte(+3 -0)📄 Description
adresses #936
This currently only focuses the input when switching between chats and reloading the root page.
When i start a chat and then klick on "New Chat" in the Sidebar is somehow doesn't focus the input. @tjbck any ideas on this?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.