Fix focus behaviour when opening single-purpose features (#2349)

* Improve focus behaviour on search boxes and chats

* Implemented MR #2317

* Fix crash if canMessage is false

* Prepare for PR #2335

* disable autofocus on message field
This commit is contained in:
Gimle Larpes
2025-06-28 16:45:21 +02:00
committed by GitHub
parent 461e730c34
commit 77ab37f637
2 changed files with 2 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ export function SearchInput({ active, loading, searchInputRef, onSearch, onReset
ref={searchInputRef}
style={{ paddingRight: config.space.S300 }}
name="searchInput"
autoFocus
size="500"
variant="Background"
placeholder="Search for keyword"