@@ -60,8 +60,8 @@ export default Mixin.create({
60
60
61
61
if ( this . dropdownExpanded ) {
62
62
/* Add clickout handler with 1ms delay, to allow opening the dropdown
63
- * by clicking e.g. a checkbox and binding to dropdownExpanded, without
64
- * having the handler close the dropdown immediately. */
63
+ * by clicking e.g. a checkbox and binding to dropdownExpanded, without
64
+ * having the handler close the dropdown immediately. */
65
65
later ( ( ) => {
66
66
$document . bind ( clickEventName , { component } , component . boundClickoutHandler ) ;
67
67
$document . bind ( focusEventName , { component } , component . boundClickoutHandler ) ;
@@ -96,13 +96,13 @@ export default Mixin.create({
96
96
let $target = $ ( event . target ) ;
97
97
98
98
/* There is an issue when the click triggered a dom change in the
99
- * dropdown that unloaded the target element. The ancestry of the target
100
- * can no longer be determined. We can check if html is still an ancestor
101
- * to determine if this has happened. The safe option then seems to be to
102
- * not close the dropdown, as occasionaly not closing the dropdown when it
103
- * should have closed, seems to be less bad for usability than occasionaly
104
- * closing the dropdown when it should not have closed.
105
- */
99
+ * dropdown that unloaded the target element. The ancestry of the target
100
+ * can no longer be determined. We can check if html is still an ancestor
101
+ * to determine if this has happened. The safe option then seems to be to
102
+ * not close the dropdown, as occasionaly not closing the dropdown when it
103
+ * should have closed, seems to be less bad for usability than occasionaly
104
+ * closing the dropdown when it should not have closed.
105
+ */
106
106
if (
107
107
component . get ( 'dropdownExpanded' ) &&
108
108
$target . closest ( 'html' ) . length &&
0 commit comments