mirror of https://github.com/vector-im/riot-web
fix focus on new editorState as it didn't have focus so broke when alt tab
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
720a728278
commit
8bb08b1b75
|
@ -330,8 +330,9 @@ export default class MessageComposerInput extends React.Component {
|
||||||
}
|
}
|
||||||
return editorState;
|
return editorState;
|
||||||
} else {
|
} else {
|
||||||
// ...or create a new one.
|
// ...or create a new one. and explicitly focus it otherwise tab in-out issues
|
||||||
return Plain.deserialize('', { defaultBlock: DEFAULT_NODE });
|
const base = Plain.deserialize('', { defaultBlock: DEFAULT_NODE });
|
||||||
|
return base.change().focus().value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue