Skip to content
Snippets Groups Projects
Unverified Commit e73b5518 authored by Akira Ouchi's avatar Akira Ouchi Committed by GitHub
Browse files

autofocus the compose form again on /share (#23094)

parent 96d26a94
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ export default class Compose extends React.PureComponent {
render () {
return (
<div>
<ComposeFormContainer />
<ComposeFormContainer autoFocus />
<NotificationsContainer />
<ModalContainer />
<LoadingBarContainer className='loading-bar' />
......
......@@ -222,8 +222,8 @@ const privacyPreference = (a, b) => {
const hydrate = (state, hydratedState) => {
state = clearAll(state.merge(hydratedState));
if (hydratedState.has('text')) {
state = state.set('text', hydratedState.get('text'));
if (hydratedState.get('text')) {
state = state.set('text', hydratedState.get('text')).set('focusDate', new Date());
}
return state;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment