Spaces autofocus and prefill the search box

This commit is contained in:
Michael Telatynski 2021-03-24 14:00:52 +00:00
parent fb46815b6a
commit 4e9a2df3b0
3 changed files with 7 additions and 1 deletions

View file

@ -570,6 +570,8 @@ const SpaceRoomDirectory: React.FC<IProps> = ({ space, initialText = "", onFinis
className="mx_textinput_icon mx_textinput_search"
placeholder={ _t("Search names and description") }
onSearch={setQuery}
autoFocus={true}
initialValue={initialText}
/>
{ content }