mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
do not remove element manully when closing tag
This commit is contained in:
parent
733307d3de
commit
cbd5a81a22
@ -12,9 +12,6 @@ class AntTag extends React.Component {
|
||||
}
|
||||
close(e) {
|
||||
var dom = React.findDOMNode(this);
|
||||
addEventListenerOnce(dom, transitionEndEvent, function () {
|
||||
dom.remove();
|
||||
});
|
||||
dom.style.width = dom.offsetWidth + 'px';
|
||||
// Magic code
|
||||
// 重复是去除浏览器渲染bug;
|
||||
|
Loading…
Reference in New Issue
Block a user