Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jul 23, 2021
1 parent d32d75d commit f922647
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/editor/SlateEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,7 @@ class SlateEditor extends Component {
// in Slate has too much builtin behaviour that's not
// accessible otherwise. Instead we try to detect such an
// event based on observing selected state
if (!editor.selection) {
setTimeout(this.props.onFocus, 100);
} else {
}
if (!editor.selection) setTimeout(this.props.onFocus, 100);
}

if (this.selectionTimeout) clearTimeout(this.selectionTimeout);
Expand Down

0 comments on commit f922647

Please sign in to comment.