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 b82ddaa commit 98fdb83Copy full SHA for 98fdb83
src/modules/Dropdown/Dropdown.js
@@ -930,7 +930,10 @@ export default class Dropdown extends Component {
930
// https://github.com/Semantic-Org/Semantic-UI-React/issues/627
931
// Blur the Dropdown on close so it is blurred after selecting an item.
932
// This is to prevent it from re-opening when switching tabs after selecting an item.
933
- this._dropdown.blur()
+ //fix(Dropdown): check for blur() before calling it #659
934
+ if (this._dropdown && typeof this._dropdown.blur === 'function') {
935
+ this._dropdown.blur()
936
+ };
937
938
// We need to keep the virtual model in sync with the browser focus change
939
// https://github.com/Semantic-Org/Semantic-UI-React/issues/692
0 commit comments