From 0f895896765c54efe5f954141f47489b9c31aeb8 Mon Sep 17 00:00:00 2001 From: Giles Thompson Date: Mon, 23 Oct 2023 12:49:38 +1300 Subject: [PATCH] chore(basic dropdown content): add eager declarations for ember-modifer 3.2.x compat --- addon/components/basic-dropdown-content.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/addon/components/basic-dropdown-content.ts b/addon/components/basic-dropdown-content.ts index 962b27f2..9666c3df 100644 --- a/addon/components/basic-dropdown-content.ts +++ b/addon/components/basic-dropdown-content.ts @@ -157,14 +157,16 @@ export default class BasicDropdownContent extends Component { ); } } - }); + // @ts-ignore + }, { eager: false }); initiallyReposition = modifier(() => { // Escape autotracking frame and avoid backtracking re-render Promise.resolve().then(() => { this.args.dropdown.actions.reposition() }); - }); + // @ts-ignore + }, { eager: false }); animateInAndOut = modifier((dropdownElement: Element): () => void => { if (!this.animationEnabled) return () => {}; @@ -190,7 +192,8 @@ export default class BasicDropdownContent extends Component { (parentElement as HTMLElement).removeChild(clone); }); }; - }); + // @ts-ignore + }, { eager: false }); observeMutations = modifier((dropdownElement: Element): () => void => { this.mutationObserver = new MutationObserver((mutations) => { @@ -221,7 +224,8 @@ export default class BasicDropdownContent extends Component { this.mutationObserver = undefined; } } - }); + // @ts-ignore + }, { eager: false }); @action touchStartHandler(): void {