We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3681aab commit ff7d9bfCopy full SHA for ff7d9bf
components/SLDSDropdownBase/index.jsx
@@ -67,6 +67,8 @@ module.exports = React.createClass( {
67
},
68
69
componentDidMount () {
70
+ const id = React.findDOMNode(this.refs.button).getAttribute("data-reactid");
71
+ this.setState({triggerId:id});
72
if(this.props.initialFocus){
73
this.setFocus();
74
}
@@ -117,11 +119,6 @@ module.exports = React.createClass( {
117
119
118
120
121
- componentDidMount(){
- let id = React.findDOMNode(this.refs.button).getAttribute('data-reactid');
122
- this.setState({triggerId:id});
123
- },
124
-
125
getIndexByValue(value){
126
let foundIndex = -1;
127
if(this.props.options && this.props.options.length){
0 commit comments