mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-27 13:46:18 +10:00
do not remove element manully when closing tag
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user