Skip to content

Conversation

@hiteshshetty-dev
Copy link
Contributor

Title

Unable to reselect an image after it has been replaced within the canvas

Description

In the CSR app, when a complete element is unmounted and then remounted during a content update, some of our observers were clearing partial state data. This caused the same element to become unselectable until another element was selected first.

We’ve resolved this by migrating from hideFocusOverlay to the hideOverlay function, which properly handles the state and fixes the issue.

Before:

Screen.Recording.2025-11-24.at.9.11.31.PM.mov

After:

Screen.Recording.2025-11-24.at.9.20.46.PM.mov

@hiteshshetty-dev hiteshshetty-dev requested a review from a team as a code owner November 24, 2025 15:52
@github-actions
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 72.6% 9531 / 13127
🔵 Statements 72.6% 9531 / 13127
🔵 Functions 71.51% 339 / 474
🔵 Branches 83.99% 1207 / 1437
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/visualBuilder/utils/updateFocussedState.ts 56.74% 60.71% 100% 56.74% 45, 57-59, 61-63, 65, 205-208, 210-241, 331-335, 338-355, 358-368, 371-388, 397-442, 449-471, 477-479
Generated in workflow #647 for commit 48e6c69 by the Vitest Coverage Report Action

Copy link
Contributor

@csAyushDubey csAyushDubey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hiteshshetty-dev hiteshshetty-dev merged commit 2188110 into develop_v4 Nov 25, 2025
10 checks passed
@hiteshshetty-dev hiteshshetty-dev deleted the VB-593-v2 branch November 25, 2025 12:08
@hiteshshetty-dev hiteshshetty-dev restored the VB-593-v2 branch December 5, 2025 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants