diff --git a/package.json b/package.json index 77a0c1020..e3a2d7b97 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "dom-scroll-into-view": "1.x", "prop-types": "^15.5.8", "rc-animate": "2.x", - "rc-menu": "^7.0.1", + "rc-menu": "^7.0.2", "rc-trigger": "^2.2.0", "rc-util": "^4.0.4", "warning": "^3.0.0" diff --git a/src/Select.jsx b/src/Select.jsx index 4fdd18f0f..0d61930f1 100644 --- a/src/Select.jsx +++ b/src/Select.jsx @@ -260,6 +260,9 @@ export default class Select extends React.Component { }; onMenuSelect = ({ item }) => { + if (!item) { + return; + } let value = this.state.value; const props = this.props; const selectedValue = getValuePropValue(item); @@ -921,7 +924,7 @@ export default class Select extends React.Component { const menuItem = (