Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pie): add seriesId in pieselectchanged #9830 #10038

Merged
merged 1 commit into from
Mar 6, 2019
Merged

fix(pie): add seriesId in pieselectchanged #9830 #10038

merged 1 commit into from
Mar 6, 2019

Conversation

Ovilia
Copy link
Contributor

@Ovilia Ovilia commented Mar 4, 2019

Add seriesId field in pieselectchanged event.
Fix #9830 .

@@ -50,7 +50,8 @@ export default function (seriesType, actionInfos) {
);
return {
name: payload.name,
selected: selected
selected: selected,
seriesId: payload.seriesId
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

payload probably has no seriesId, and the action probably effect multiple series.

dispatchAction({name: 'xxx'}); // Probably effect multiple series
dispatchAction({seriesName: 'xxx'}); // Probably effect multiple series

I think we'd better discuss more about the further enhancement of properties of events, which currently is not good enough. Some properties are missing.
And also we should consider that some common properties (like seriesId seriesIndex componentIndex name) should be consistent as far as possible.

Copy link
Member

@100pah 100pah Mar 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked it again and I think this fix is correct.
It can resolve the issue without negative effect to other cases.
The other cases can be discussed in future.

@Ovilia Ovilia merged commit 1a599cc into master Mar 6, 2019
@Ovilia Ovilia deleted the fix-9830 branch March 6, 2019 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants