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
3 files changed
+5
-3
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
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ export default function MessageSkeleton({ height, isMine = false }) {
|
|||||||
|
|
||||||
const marginLeft = isMine ? '60px' : '8px';
|
const marginLeft = isMine ? '60px' : '8px';
|
||||||
return (
|
return (
|
||||||
<div className={classes.root} style={{ marginLeft, height: `${height}px` }}>
|
<div className={classes.root} style={{ marginLeft, height: `${height}px` }}>
|
||||||
<Skeleton variant="text" width={325} height={height} />
|
<Skeleton variant="text" width={325} height={height} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user