Skip to content

Commit

Permalink
No strict mode; Fix highlight behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
bttf committed Oct 12, 2023
1 parent 101e314 commit 0126e15
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/visual_editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ const VisualEditor: FC<{}> = () => {
</>
) : null}
{/** Overlays for highlighting hovered elements **/}
{mode === "edit" ? (
{mode === "edit" && !isDragging ? (
<>
<FloatingFrame parentElement={highlightedElement} />
<SelectorDisplay selector={highlightedElementSelector} />
Expand Down Expand Up @@ -336,8 +336,4 @@ const root = ReactDOM.createRoot(
shadowRoot.querySelector("#visual-editor-root")!
);

root.render(
<React.StrictMode>
<VisualEditor />
</React.StrictMode>
);
root.render(<VisualEditor />);

0 comments on commit 0126e15

Please sign in to comment.