do not remove element manully when closing tag

This commit is contained in:
afc163 2015-08-19 19:19:35 +08:00
parent 733307d3de
commit cbd5a81a22

View File

@ -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