You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
fix focus on new editorState as it didn't have focus so broke when alt tab
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user