mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
autofocus input fields
This commit is contained in:
1 parent
e11f3b1148
commit
84919e7104
2 files changed
+2
No files matched your search
@@ -35,6 +35,7 @@ const MessageInput = ({ messageGroupId }: IProps) => {
|
|||||||
onChange={e => setMessage(e.target.value)}
|
onChange={e => setMessage(e.target.value)}
|
||||||
placeholder={t("APPS_MESSAGES_NEW_MESSAGE")}
|
placeholder={t("APPS_MESSAGES_NEW_MESSAGE")}
|
||||||
className={classes.input}
|
className={classes.input}
|
||||||
|
inputRef={(input) => input && input.focus()}
|
||||||
inputProps={{
|
inputProps={{
|
||||||
className: classes.messagesInput
|
className: classes.messagesInput
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ const NewMessageGroupForm = () => {
|
|||||||
onChange={e => setParticipants(e.target.value)}
|
onChange={e => setParticipants(e.target.value)}
|
||||||
placeholder={t("APPS_MESSAGES_NEW_MESSAGE_GROUP")}
|
placeholder={t("APPS_MESSAGES_NEW_MESSAGE_GROUP")}
|
||||||
className={classes.newGroupinput}
|
className={classes.newGroupinput}
|
||||||
|
inputRef={(input) => input && input.focus()}
|
||||||
inputProps={{
|
inputProps={{
|
||||||
className: classes.messagesInput
|
className: classes.messagesInput
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in new issue
Block a user