dosubot[bot] commented on issue #38378:
URL: https://github.com/apache/superset/issues/38378#issuecomment-3994986079

   <!-- Greeting -->
   Hi @DTaa2105ta! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.
   
   <!-- Answer -->
   This is a **known bug** that has been reported in [issue 
#37569](https://github.com/apache/superset/issues/37569) and 
[#37761](https://github.com/apache/superset/issues/37761#issuecomment-3862200442).
   
   **Browser-specific behavior:**
   - Chrome 145+ and Edge 145+: Hover highlights remain stuck (affected)
   - Firefox 148: Works correctly
   
   **Root cause:** There's a conflict between hand-written 
`mouseover`/`mouseout` handlers and Datamap's built-in `highlightOnHover` 
behavior in 
[WorldMap.js](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/legacy-plugin-chart-world-map/src/WorldMap.js).
 The execution order varies across browser versions, and in Chrome/Edge 145+, 
the custom `mouseout` handler actually prevents the highlight from resetting.
   
   **Proposed fix:** Remove the hand-written `mouseover`/`mouseout` handlers 
and rely entirely on Datamap's built-in `highlightOnHover` behavior, which 
resolves the issue across all browsers.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/0314ba1e-6cbf-4997-a6f4-46c18fa2e05c?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/0314ba1e-6cbf-4997-a6f4-46c18fa2e05c?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/0314ba1e-6cbf-4997-a6f4-46c18fa2e05c?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/0314ba1e-6cbf-4997-a6f4-46c18fa2e05c?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/0314ba1e-6cbf-4997-a6f4-46c18fa2e05c?feedback_type=hallucination)
 | [Report 
šŸ›](https://app.dosu.dev/response-feedback/0314ba1e-6cbf-4997-a6f4-46c18fa2e05c?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/0314ba1e-6cbf-4997-a6f4-46c18fa2e05c?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20%2A%2Aknown%20bug%2A%2A%20that%20has%20been%20reported%20in%20%5Bissue%20%2337569%5D%28https%3A//github.com/apache/superset/issues/37569%29%20and%20%5B%2337761%5D%28https%3A//github.com/apache/superset/issues/37761%23issuecomment-3862200442%29.%0A%0A%2A%2ABrowser-specific%20behavior%3A%2A%2A%0A-%20Chrome%20145%2B%20and%20Edge%20145%2B%3A%20Hover%20highlights%20remain%20stuck%20%28affected%29%0A-%20Firefox%20148%3A%20Works%20correctly%0A%0A%2A%2ARoot%20cause%3A%2A%2A%20There%27s%20a%20conflict%20between%20hand-written%20%60mouseover%60/%60mouseout%60%20handlers%20and%20Datamap%27s%20built-in%20%60highlightOnHover%60%20behavior%20in%20%5BWorldMap.js%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799
 
c/superset-frontend/plugins/legacy-plugin-chart-world-map/src/WorldMap.js%29.%20The%20execution%20order%20varies%20across%20browser%20versions%2C%20and%20in%20Chrome/Edge%20145%2B%2C%20the%20custom%20%60mouseout%60%20handler%20actually%20prevents%20the%20highlight%20from%20resetting.%0A%0A%2A%2AProposed%20fix%3A%2A%2A%20Remove%20the%20hand-written%20%60mouseover%60/%60mouseout%60%20handlers%20and%20rely%20entirely%20on%20Datamap%27s%20built-in%20%60highlightOnHover%60%20behavior%2C%20which%20resolves%20the%20issue%20across%20all%20browsers.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/38378)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to