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

Commit

Permalink
Don't show hovering toolbar when there's just saved, not live, selection
Browse files Browse the repository at this point in the history
  • Loading branch information
silviubogan committed Oct 20, 2020
1 parent a5479b3 commit 597e954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/editor/ui/Toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const Toolbar = ({ toggleButton, children }) => {
}

const { selection } = editor;
const savedSelection = editor.getSavedSelection();
if (!(selection || savedSelection)) {
// const savedSelection = editor.getSavedSelection();
if (!selection) {
el.removeAttribute('style');
return;
}
Expand Down

0 comments on commit 597e954

Please sign in to comment.