letainc opened a new issue, #20231: URL: https://github.com/apache/echarts/issues/20231
### Version 5.3 ### Link to Minimal Reproduction https://codesandbox.io/p/sandbox/react-js-sandbox-v9dx9x?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clzhr9fqc00063b6kls07pk2t%2522%252C%2522sizes%2522%253A%255B100%252C0%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clzhr9fqc00023b6ko4j9siuk%2522%257D% 255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clzhr9fqc00033b6k217zbhgf%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clzhr9fqc00053b6k0xqlih65%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clzhr9fqc00023b6ko4j9siuk%2522%253A%257B%2522tabs%2522%2 53A%255B%257B%2522id%2522%253A%2522clzhr9fqb00013b6k2xyluztf%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Fsrc%252Findex.js%2522%257D%255D%252C%2522id%2522%253A%2522clzhr9fqc00023b6ko4j9siuk%2522%252C%2522activeTabId%2522%253A%2522clzhr9fqb00013b6k2xyluztf%2522%257D%252C%2522clzhr9fqc00053b6k0xqlih65%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clzhr9fqc00043b6kpaphgici%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522clzhr9fqc00053b6k0xqlih65%2522%252C%2522activeTabId%2522%253A%2522clzhr9fqc00043b6kpaphgici%2522%257D%252C%2522clzhr9fqc00033b6k217zbhgf%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522clzhr9fqc00033b6k217zbhgf%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Afalse%252C%2522sh owSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D ### Steps to Reproduce visualMap: { show:true, type: "piecewise", dimension: 4, showLabel: false, pieces: colorScale.map((item, index) => ({ min: index === 0 ? -Infinity : colorScale[index - 1].threshold, max: index === colorScale.length - 1 ? Infinity : item.threshold, color: item.color, })), itemHeight: 16, itemWidth: 32, itemGap: 1, left: align.left, padding: 0, top: 0, orient: "horizontal", selectedMode: "multiple", }, This is the initial states:  this is when the first button is selected  ### Current Behavior The button should remain visible with a grey color after being clicked, allowing users to click it again. The label should be positioned inside the button, not beside it. ### Expected Behavior The button disappears completely upon clicking. ### Environment ```markdown - OS: macOS Sonoma version 14.5 - Browser:Chrome - Framework:React JS ``` ### Any additional comments? _No response_ -- 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]
