diff --git a/js/src/common/components/Dropdown.js b/js/src/common/components/Dropdown.js index da3b2bc118..7f945427e9 100644 --- a/js/src/common/components/Dropdown.js +++ b/js/src/common/components/Dropdown.js @@ -64,7 +64,7 @@ export default class Dropdown extends Component { m.redraw.sync(); } - if (onshow) { + if (typeof onshow === 'function') { onshow(); }