Skip to content

Commit fbefe38

Browse files
committed
fix value input bug
1 parent 92101f6 commit fbefe38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/SLDSPicklistBase/index.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ module.exports = React.createClass( {
7777
},
7878

7979
getValueByIndex(index){
80-
return this.props.options[index].value;
80+
const option = this.props.options[index];
81+
if(option){
82+
return this.props.options[index].value;
83+
}
8184
},
8285

8386
handleSelect(index) {

0 commit comments

Comments
 (0)