From 32feb5b7c794f414da02f7972f2e4f62ab9b8a4e Mon Sep 17 00:00:00 2001 From: Andrew Kirwin Date: Mon, 9 Dec 2024 21:57:03 +0000 Subject: [PATCH] fixup! add dropdown primitive --- addon/components/dropdown/index.gjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addon/components/dropdown/index.gjs b/addon/components/dropdown/index.gjs index e1e1426f..1d883508 100644 --- a/addon/components/dropdown/index.gjs +++ b/addon/components/dropdown/index.gjs @@ -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 { @@ -110,7 +110,7 @@ export default class Dropdown extends Component { return; } - this._handleClickAbort(); + this._handleClickOutside(); } @action @@ -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) {