waterWang opened a new pull request, #21719:
URL: https://github.com/apache/echarts/pull/21719

   ### Problem
   
   When `geo.tooltip.show` is set to `false`, the tooltip still shows when 
hovering over geo regions because `resetTooltipForRegion` unconditionally sets 
the tooltip config on each region element.
   
   ### Root Cause
   
   In `src/component/helper/MapDraw.ts`, the `resetTooltipForRegion` function 
always calls `graphic.setTooltipConfig()` with the region's tooltip option, 
without checking whether `show: false` is explicitly set.
   
   ### Fix
   
   Added a guard in `resetTooltipForRegion` to check if the tooltip option has 
`show: false` before setting the tooltip config. If the tooltip is explicitly 
disabled, the function returns early without setting the config, so the tooltip 
component will not show a tooltip for that region.
   
   ### Related Issue
   
   Fixes #20232


-- 
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