Version
The current next branch
Steps to reproduce
Any cases with toolbox.
For example, test/toolbox-stack-custom.html
What is actually happening?
The state of the toolbox component was changed to normal.

What is expected?
The emphasis state of the toolbox component should be kept.

Others
I looked around and found it might be caused by the following code.
https://github.com/apache/incubator-echarts/blob/next/src/util/states.ts#L367-L378
According to the PR #12925, I think the blur state is supported in all series. But is it also supported in all components?
If not, perhaps we should only traverse the series and exclude the components like toolbox, axis etc..
Proposed changes
// Before
// model.eachComponent(function (componentType, componentModel) {
// const view = componentType === 'series'
// ? ecIns.getViewOfSeriesModel(componentModel as SeriesModel)
// : ecIns.getViewOfComponentModel(componentModel);
// // Leave blur anyway
// view.group.traverse(function (child) {
// singleLeaveBlur(child);
// });
// });
// After
model.eachSeries(function (seriesModel) {
const view = ecIns.getViewOfSeriesModel(seriesModel);
// Leave blur anyway
view.group.traverse(function (child) {
singleLeaveBlur(child);
});
});
I'm not sure, these are only my simple thoughts.
Thanks.
Version
The current next branch
Steps to reproduce
Any cases with
toolbox.For example,
test/toolbox-stack-custom.htmlWhat is actually happening?
The state of the
toolboxcomponent was changed tonormal.What is expected?
The emphasis state of the
toolboxcomponent should be kept.Others
I looked around and found it might be caused by the following code.
https://github.com/apache/incubator-echarts/blob/next/src/util/states.ts#L367-L378
According to the PR #12925, I think the
blurstate is supported in all series. But is it also supported in all components?If not, perhaps we should only traverse the series and exclude the components like
toolbox,axisetc..Proposed changes
I'm not sure, these are only my simple thoughts.
Thanks.