diff --git a/js/ComboBox.js b/js/ComboBox.js index aa298706..610a2beb 100644 --- a/js/ComboBox.js +++ b/js/ComboBox.js @@ -171,9 +171,9 @@ define( require => { // @private listener for 'click outside to dismiss' this.clickToDismissListener = { down: event => { - //TODO scenery#927 is trail.nodes public? should we add Trail.containsNode? + // Ignore if we click over the button, since the button will handle hiding the list. - if ( event.trail.nodes.indexOf( this.button ) === -1 ) { + if ( !event.trail.containsNode( this.button ) ) { this.hideListBox(); } }