Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3506682
D7389.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7389.diff
View Options
diff --git a/web/chat/chat-thread-composer.react.js b/web/chat/chat-thread-composer.react.js
--- a/web/chat/chat-thread-composer.react.js
+++ b/web/chat/chat-thread-composer.react.js
@@ -186,6 +186,7 @@
onChangeText={setUsernameInputText}
searchText={usernameInputText}
placeholder="Select users for chat"
+ autoFocus={true}
/>
</div>
<Button className={css.closeSearch} onClick={onCloseSearch}>
diff --git a/web/components/search.react.js b/web/components/search.react.js
--- a/web/components/search.react.js
+++ b/web/components/search.react.js
@@ -8,13 +8,14 @@
import css from './search.css';
type Props = {
+ ...React.ElementConfig<'input'>,
+searchText: string,
+onChangeText: (searchText: string) => mixed,
+placeholder?: string,
};
function Search(props: Props, ref): React.Node {
- const { searchText, onChangeText, placeholder } = props;
+ const { searchText, onChangeText, placeholder, ...rest } = props;
const showClearButton = !!searchText;
@@ -35,6 +36,7 @@
<SWMansionIcon size={24} icon="search" />
</div>
<input
+ {...rest}
id={css.searchInputID}
className={css.searchInput}
onChange={onChange}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 5:52 PM (20 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2688572
Default Alt Text
D7389.diff (1 KB)
Attached To
Mode
D7389: [web] Make ChatThreadComposer search bar auto-focus
Attached
Detach File
Event Timeline
Log In to Comment