You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "helgasoft (via GitHub)" <gi...@apache.org> on 2023/02/07 19:49:11 UTC

[GitHub] [echarts] helgasoft commented on issue #18245: [Bug] Expand And Collapse feature doesn't work as expected when data is changed

helgasoft commented on issue #18245:
URL: https://github.com/apache/echarts/issues/18245#issuecomment-1421353086

   I do not think it's a bug. 
   The 'click' event has already a handler (expand/collapse) and one cannot "expect" that the custom handler will just replace it.
   Maybe ask for a [Feature] to run the custom handler **before** the embedded. Then the **custom** could use _event.stopPropagation()_ or event.cancelBubble: true or _setOption(option, {silent:true})_ to suppress the **embedded**.
   
   Would suggest to toggle with _dblclick_ instead of _click_ - [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeBYAULWBnApgJwhywC5YBtVDTWMATxB1ICIw8ccmAada2AEwCGYAaQo9esaAIC2jWEzzBgYLuN4BjABYQANnzbRRlCdSmzmAYW17YAQVVUTW3fpyHyxk6ZlymAGRwBADNYCyY1CQBfTmQIkzNfAODYABFwxyiYzy9JH2YkkIBRdJzo2Iz4vPkC2AAxEq9IgF042DLsiQTLaz5YACEHHOc9AyNW3i7qwJCAcQaTdvHvcynkgAl5qJaKtqylyaYrF1TNzEWdzAOjm3ruC9hh13cxe8uq_2nYAClT6nOct4rD7JADSvzO2wWkL-TTuvB0AgARjgdKQOpgQMAsBBIDBmAQAOaaFQRSLiZroMlodCgXHQABMCHKmFwBCIYwydAYzFY7EG1EEwg5lSBimU_I0PVGHn272uvXscK8j2lLwBuSBNQAylxYEtMAjkajkLBEcA8Hx8AB1CB8MCaYj0mIgAR8PgQaAE4gAViV6q8Zot-AswB05tIAHI2HwI1TSntXhrEp80kt_gCDjVimmE-rM596mnYNDeOmRb55f0JRIVW5hRn3jU5jnmQ3NZ8NmmS39c14rj0Tq0y505QPbkta890SP28kfi3pxNG58wV2h93mn7YIaUWjWpjsXT8RAiSSMnG2tsqWBgASdEzWABXHAAbnQ0loVgEeDAADoYAAFBG6g6BA6gANYRjEQSPtA6h0gBACUrYfl-P6_rgYAAPLgFA0AATed6wAA_LAtJ4YypDkTAiFvlQhH3ogACEDF0ZEtFAA)


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org