You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In your docs cookbook you are providing a example for how to create a custom EBD version by extending the component and add some configurations/options like custom calculatePosition (by overwriting the function):
import EmberBasicDropdown from 'ember-basic-dropdown/components/basic-dropdown';
export default class extends EmberBasicDropdown {
// Place here your system-wide preferences
triggerComponent = 'my-custom-trigger'
calculatePosition() {
// your custom function to position the dropdown
}
}
with version > 3 and the re-write to glimmer-components, it looks like this is not possible anymore, as you're only checking for this.args.calculatePosition otherwise it will use the imported calculatePosition from the util:
In your docs cookbook you are providing a example for how to create a custom EBD version by extending the component and add some configurations/options like custom
calculatePosition
(by overwriting the function):with version > 3 and the re-write to glimmer-components, it looks like this is not possible anymore, as you're only checking for
this.args.calculatePosition
otherwise it will use the importedcalculatePosition
from the util:ember-basic-dropdown/addon/components/basic-dropdown.ts
Line 192 in e0addf0
Noticed this, while I was updating our app to use EBD > 3 and was using this system-wide config before.
Am I missing something or is this not possible anymore?
Maybe remove this from docs or make it work, something like:
I ended up by creating a wrapper-component which is passing calculatePosition-function as arg instead of extending
The text was updated successfully, but these errors were encountered: