Skip to content

Commit ff7d9bf

Browse files
committed
Tests for dropdown
1 parent 3681aab commit ff7d9bf

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

components/SLDSDropdownBase/index.jsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ module.exports = React.createClass( {
6767
},
6868

6969
componentDidMount () {
70+
const id = React.findDOMNode(this.refs.button).getAttribute("data-reactid");
71+
this.setState({triggerId:id});
7072
if(this.props.initialFocus){
7173
this.setFocus();
7274
}
@@ -117,11 +119,6 @@ module.exports = React.createClass( {
117119

118120
},
119121

120-
componentDidMount(){
121-
let id = React.findDOMNode(this.refs.button).getAttribute('data-reactid');
122-
this.setState({triggerId:id});
123-
},
124-
125122
getIndexByValue(value){
126123
let foundIndex = -1;
127124
if(this.props.options && this.props.options.length){

0 commit comments

Comments
 (0)