Skip to content

Commit

Permalink
fix(UX): Reset hoveredBreakpoint and activeBreakpoint on new breapoin…
Browse files Browse the repository at this point in the history
…t selection
  • Loading branch information
surajshetty3416 committed Dec 29, 2024
1 parent 8ed1429 commit b1f356d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/components/BuilderCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ function selectBreakpoint(ev: MouseEvent, breakpoint: BreakpointConfig) {
}
}
if (breakpoint.visible) {
store.hoveredBreakpoint = breakpoint.device;
store.activeBreakpoint = breakpoint.device;
breakpoint.renderedOnce = true;
}
}
Expand Down

0 comments on commit b1f356d

Please sign in to comment.