Skip to content

Commit

Permalink
fix: fix text field
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Dec 4, 2018
1 parent be51fb3 commit 7c5d3cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/TextField.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import { injectStyles } from '../utils';
import { injectStyles, omit } from '../utils';
import styles from '../theme/components/TextField.styl';

class TextField extends React.Component {
Expand Down Expand Up @@ -197,7 +197,9 @@ class TextField extends React.Component {
)}

<Tag
{ ...rest }
{ ...omit(rest, [
'onChange',
]) }
ref={(ref) => this.input = ref}
className="field"
type={this.getType()}
Expand Down

0 comments on commit 7c5d3cf

Please sign in to comment.