🐛 Fix Button removeAttribute error in Edge

close #13216

close ant-design/ant-design-pro#2423
This commit is contained in:
afc163 2018-12-04 18:26:47 +08:00
parent 7ccd0285b9
commit 1d0ef997f4
No known key found for this signature in database
GPG Key ID: 738F973FCE5C6B48

View File

@ -107,7 +107,7 @@ export default class Wave extends React.Component<{insertExtraNode?: boolean}> {
}
resetEffect(node: HTMLElement) {
if (!node || node === this.extraNode) {
if (!node || node === this.extraNode || !(node instanceof Element)) {
return;
}
const { insertExtraNode } = this.props;