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

[Bug] 饼图labelLayout-draggable更新问题 #20631

Open
li-shao-feng opened this issue Dec 31, 2024 · 1 comment
Open

[Bug] 饼图labelLayout-draggable更新问题 #20631

li-shao-feng opened this issue Dec 31, 2024 · 1 comment
Labels

Comments

@li-shao-feng
Copy link

Version

5.5.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=pie-simple

Steps to Reproduce

ApacheCharts.setOption({
series: {
type: pie,
labelLayout: () => {
return {
draggable: isLabelDrag.value,
};
},
},
});

Current Behavior

随便找一个饼图代码,用setOption更新labelLayout-labelLayout:true,然后用同样的方法设置为false,此时去拖拽标签,还可以拖拽并且引导线不动

Expected Behavior

设置为false之后,应该不能被拖拽,鼠标悬浮图标应该为手指而不是拖拽符号

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@helgasoft
Copy link

bug confirmed - labelLine drag is disabled, but label remains draggable.
Workaround is to use replaceMerge - Demo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants