Browse Source

buttons should not blur after click

pull/5597/head
Kenaniah Cerny 8 years ago
parent
commit
8ec86a6b1f
  1. 2
      components/button/button.tsx

2
components/button/button.tsx

@ -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);
} }

Loading…
Cancel
Save