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]: 表格列宽拖动代码可能存在问题 #352

Closed
chester0424 opened this issue May 22, 2024 · 1 comment
Closed

🐛 [Bug]: 表格列宽拖动代码可能存在问题 #352

chester0424 opened this issue May 22, 2024 · 1 comment

Comments

@chester0424
Copy link
Contributor

Version

1.7.1.0

Angular Version

17.3.0

Link to minimal reproduction

https://github.com/DevCloudFE/ng-devui/devui/data-table/table/head/th/th.component.ts

Step to reproduce

devui/data-table/table/head/th/th.component.ts 中 onMousedown和onMouseup成对方法,
onMousedown 方法添加resize-overlay元素代码: this.renderer2.appendChild(this.element.firstElementChild, this.resizeOverlay); 而在 onMouseup方法中删除元素diamante: this.renderer2.removeChild(this.element, this.resizeOverlay);

导致运行时报错 ERROR DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

修改成: this.renderer2.removeChild(this.element.firstElementChild, this.resizeOverlay);
就正常了

@Simplelegant
Copy link
Collaborator

Simplelegant commented Jun 19, 2024

感谢贡献 #353

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