Skip to content

Commit

Permalink
fixup! add dropdown primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
amk221 committed Dec 9, 2024
1 parent 5e91d1e commit 32feb5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon/components/dropdown/index.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { modifier } from 'ember-modifier';
const { assign } = Object;

const FOCUS_LEAVE = Symbol('FOCUS_LEAVE');
const CLICK_ABORT = Symbol('CLICK_ABORT');
const CLICK_OUTSIDE = Symbol('CLICK_OUTSIDE');
const ESCAPE = Symbol('ESCAPE');

export default class Dropdown extends Component {
Expand Down Expand Up @@ -110,7 +110,7 @@ export default class Dropdown extends Component {
return;
}

this._handleClickAbort();
this._handleClickOutside();
}

@action
Expand Down Expand Up @@ -173,8 +173,8 @@ export default class Dropdown extends Component {
this.close(FOCUS_LEAVE);
}

_handleClickAbort() {
this.close(CLICK_ABORT);
_handleClickOutside() {
this.close(CLICK_OUTSIDE);
}

_handleEscape(event) {
Expand Down

0 comments on commit 32feb5b

Please sign in to comment.