Skip to content
Snippets Groups Projects
Unverified Commit 08c3fbfb authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Custom expression editor: workaround focus issue on Firefox (#19670)

parent a16204b1
No related branches found
No related tags found
No related merge requests found
......@@ -248,6 +248,12 @@ export default class ExpressionEditorTextfield extends React.Component {
if (this.input.current) {
const { editor } = this.input.current;
this.handleCursorChange(editor.selection);
// workaround some unknown issue on Firefox
// without explicit focus, the editor is vertically shifted
setTimeout(() => {
editor.focus();
}, 0);
}
};
......
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