Skip to content

Commit afd9079

Browse files
committed
replace jQuery with native DOM
1 parent 1334323 commit afd9079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/rl-dropdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default Component.extend({
2222
click(event) {
2323
let closeOnChildClick = this.closeOnChildClick;
2424
let propagateClicks = this.propagateClicks;
25-
let $target = $(event.target);
26-
let $c = this.$();
25+
let $target = event.target;
26+
let $c = this.element;
2727

2828
if ($target !== $c) {
2929
if ((closeOnChildClick === true || closeOnChildClick === 'true') && $target.closest($c).length) {

0 commit comments

Comments
 (0)