mirror of
https://github.com/funamitech/mastodon
synced 2024-11-28 23:09:18 +09:00
[Glitch] autofocus the compose form again on /share
Port e73b55184b
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
372fa3fe36
commit
8ce02aa6e8
@ -9,7 +9,7 @@ export default class Compose extends React.PureComponent {
|
|||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<ComposeFormContainer />
|
<ComposeFormContainer autoFocus />
|
||||||
<NotificationsContainer />
|
<NotificationsContainer />
|
||||||
<ModalContainer />
|
<ModalContainer />
|
||||||
<LoadingBarContainer className='loading-bar' />
|
<LoadingBarContainer className='loading-bar' />
|
||||||
|
@ -303,8 +303,8 @@ const insertEmoji = (state, position, emojiData) => {
|
|||||||
const hydrate = (state, hydratedState) => {
|
const hydrate = (state, hydratedState) => {
|
||||||
state = clearAll(state.merge(hydratedState));
|
state = clearAll(state.merge(hydratedState));
|
||||||
|
|
||||||
if (hydratedState.has('text')) {
|
if (hydratedState.get('text')) {
|
||||||
state = state.set('text', hydratedState.get('text'));
|
state = state.set('text', hydratedState.get('text')).set('focusDate', new Date());
|
||||||
}
|
}
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
|
Loading…
Reference in New Issue
Block a user