Skip to content

Commit f45cd81

Browse files
committed
fix: insertion markers firing move events (google#7005)
(cherry picked from commit 35276e9)
1 parent 961a83f commit f45cd81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/insertion_marker_manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ export class InsertionMarkerManager {
179179
*/
180180
applyConnections() {
181181
if (!this.activeCandidate) return;
182-
const {local, closest} = this.activeCandidate;
183-
local.connect(closest);
184182
eventUtils.disable();
185183
this.hidePreview();
186184
eventUtils.enable();
185+
const {local, closest} = this.activeCandidate;
186+
local.connect(closest);
187187
if (this.topBlock.rendered) {
188188
const inferiorConnection = local.isSuperior() ? closest : local;
189189
blockAnimations.connectionUiEffect(inferiorConnection.getSourceBlock());

0 commit comments

Comments
 (0)