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 e0de9c7 commit ae0f5a5Copy full SHA for ae0f5a5
app/components/rl-dropdown.js
@@ -20,12 +20,12 @@ export default Component.extend({
20
let $target = event.target;
21
let $c = this.element;
22
23
- if ($target !== $c) {
24
- if ((closeOnChildClick === true || closeOnChildClick === 'true') && $target.closest($c).length) {
25
- this.set('isExpanded', false);
26
- } else if (closeOnChildClick && $target.closest(closeOnChildClick, $c).length) {
27
28
- }
+ if ($target === $c) {
+ return;
+ }
+
+ if ($target.closest(closeOnChildClick, $c).length) {
+ this.set('isExpanded', false);
29
}
30
},
31
});
0 commit comments