fix: insertion markers firing move events (#7005)

This commit is contained in:
Beka Westberg
2023-04-21 12:49:02 -07:00
committed by GitHub
parent 7feefa44d0
commit 35276e9468

View File

@@ -180,11 +180,11 @@ export class InsertionMarkerManager {
*/
applyConnections() {
if (!this.activeCandidate) return;
const {local, closest} = this.activeCandidate;
local.connect(closest);
eventUtils.disable();
this.hidePreview();
eventUtils.enable();
const {local, closest} = this.activeCandidate;
local.connect(closest);
if (this.topBlock.rendered) {
const inferiorConnection = local.isSuperior() ? closest : local;
const rootBlock = this.topBlock.getRootBlock();