|
@ -1,6 +1,5 @@ |
|
|
import React from 'react'; |
|
|
import React from 'react'; |
|
|
import classNames from 'classnames'; |
|
|
import classNames from 'classnames'; |
|
|
import { findDOMNode } from 'react-dom'; |
|
|
|
|
|
import Icon from '../icon'; |
|
|
import Icon from '../icon'; |
|
|
import omit from 'omit.js'; |
|
|
import omit from 'omit.js'; |
|
|
|
|
|
|
|
@ -119,7 +118,6 @@ export default class Button extends React.Component<ButtonProps, any> { |
|
|
|
|
|
|
|
|
// Handle auto focus when click button in Chrome
|
|
|
// Handle auto focus when click button in Chrome
|
|
|
handleMouseUp = (e) => { |
|
|
handleMouseUp = (e) => { |
|
|
(findDOMNode(this) as HTMLElement).blur(); |
|
|
|
|
|
if (this.props.onMouseUp) { |
|
|
if (this.props.onMouseUp) { |
|
|
this.props.onMouseUp(e); |
|
|
this.props.onMouseUp(e); |
|
|
} |
|
|
} |
|
|