Skip to content

Commit

Permalink
Fix Select
Browse files Browse the repository at this point in the history
  • Loading branch information
e1emeb0t committed Jun 14, 2017
1 parent b58f59c commit a35d1e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-react",
"version": "1.0.9",
"version": "1.0.10",
"description": "Element UI for React",
"private": false,
"main": "dist/npm/es5/index.js",
Expand Down
8 changes: 6 additions & 2 deletions src/input/Input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ export default class Input extends Component {
/* <Instance Methods */

focus(): void {
(this.refs.input || this.refs.textarea).focus();
setTimeout(() => {
(this.refs.input || this.refs.textarea).focus();
});
}

blur(): void {
(this.refs.input || this.refs.textarea).blur();
setTimeout(() => {
(this.refs.input || this.refs.textarea).blur();
});
}

/* Instance Methods> */
Expand Down
1 change: 1 addition & 0 deletions src/select/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ class Select extends Component {
this.refs.input.focus();
} else {
this.refs.reference.focus();

// this.broadcast('input', 'inputSelect');
}
}
Expand Down

0 comments on commit a35d1e1

Please sign in to comment.