From e5e6989c0a3f4812fde999c27c0a516db3c15156 Mon Sep 17 00:00:00 2001 From: pewpewXD <104527572+ALOK9442@users.noreply.github.com> Date: Fri, 18 Oct 2024 01:52:58 +0530 Subject: [PATCH] fix: edit and launch button fail on keeping mouse over while reload (#36954) ## Description > Fixes edit and launch buttons fail to appear if mouse pointer is hovering over the Application box while loading webpage > Tested it thoroughly. https://github.com/user-attachments/assets/797df6c8-04b7-48af-ae87-51a89ad25e62 Fixes #36804 ## Automation /ok-to-test tags="" ### :mag: Cypress test results > [!CAUTION] > If you modify the content in this section, you are likely to disrupt the CI result for your PR. ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **Bug Fixes** - Updated mouse event handling in the Card component for improved overlay display behavior. - **Refactor** - Adjusted event triggering from `onMouseEnter` to `onMouseOver` without altering overall functionality. --- app/client/src/components/common/Card.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/client/src/components/common/Card.tsx b/app/client/src/components/common/Card.tsx index cb77fd8d7e..bc6e4a8d05 100644 --- a/app/client/src/components/common/Card.tsx +++ b/app/client/src/components/common/Card.tsx @@ -336,14 +336,14 @@ function Card({ className={testId} hasReadPermission={hasReadPermission} isContextMenuOpen={isContextMenuOpen} - onMouseEnter={() => { - !isFetching && setShowOverlay(true); - }} onMouseLeave={() => { // If the menu is not open, then setOverlay false // Set overlay false on outside click. !isContextMenuOpen && setShowOverlay(false); }} + onMouseOver={() => { + !isFetching && setShowOverlay(true); + }} showOverlay={showOverlay} testId={testId} >