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

渲染多个xncolorpicker,只显示最后一个 #11

Open
lixiaosaKk opened this issue Nov 21, 2022 · 3 comments
Open

渲染多个xncolorpicker,只显示最后一个 #11

lixiaosaKk opened this issue Nov 21, 2022 · 3 comments

Comments

@lixiaosaKk
Copy link

lixiaosaKk commented Nov 21, 2022

我注意到,在渲染多个xncolorpicker的时候,如果将xncolorpicker封装为组件去多次调用,只会显示最后一个

@lixiaosaKk
Copy link
Author

是因为传入的 selector: "#colorpicker",都是这个的原因吗?

@lixiaosaKk
Copy link
Author

是否有最优的解决方案?期待您的回复

@zhouhonglong
Copy link

mousedownFunc方法中把最后两行$(that.dom).remove(); that.dom = null;删掉就可以了,但是要自己手动销毁

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

No branches or pull requests

2 participants