Andrey Mikhaylov (lolmaus)
Andrey Mikhaylov (lolmaus)
It's been long broken.
I've found this addon: https://github.com/adopted-ember-addons/ember-cli-ifa It does what I'm asking for, but at the cost of increasing bundle size substantially. It has a service, an initializer, a helper, an util......
Discussion: https://discord.com/channels/457912077277855764/1063518400132956211
@rwjblue > You could write your actions to accept the full event and that would work fine... Well, when you do `{{route-action}}`, the action function is not passed any event.
When you use the `component` helper, your polymorphic components must have identical arguments. In your example, you have to refactor `user=model` and `event=model` into a common name: `modalModel`. But if...
I've found the `isFirstLoad` property. It is read here, but it does not set up to prevent scrolling: https://github.com/DockYard/ember-router-scroll/blob/d6cc035e45a3e85c0ea97ffe98d4276f3e558437/addon/index.js#L146-L148
This ugly hack resolves the issue for me: ```js this.routerScroll.set('preserveScrollPosition', true); later(this, function () { this.routerScroll.set('preserveScrollPosition', false); }, 1000); ``` ...in `application` route's `beforeModel` hook.
https://github.com/dockyard/ember-cli-custom-assertions/blob/master/tests/unit/custom-assertion-test.js#L6
Only some custom assertions need access to the context. Have user explicitly pass the context when necessary.
Even for stuff like `assert.false(bool)`?