Browse Source

Fixed lint error.

pull/1267/head
ShiTengFei 9 years ago
parent
commit
896c940768
  1. 2
      components/tag/index.jsx

2
components/tag/index.jsx

@ -16,7 +16,7 @@ export default class Tag extends React.Component {
close(e) { close(e) {
this.props.onClose(e); this.props.onClose(e);
if(e.defaultPrevented) return; if (e.defaultPrevented) return;
const dom = ReactDOM.findDOMNode(this); const dom = ReactDOM.findDOMNode(this);
dom.style.width = `${dom.offsetWidth}px`; dom.style.width = `${dom.offsetWidth}px`;
// It's Magic Code, don't know why // It's Magic Code, don't know why

Loading…
Cancel
Save