mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 13:09:33 -06:00
269f65f14c
Our `triggerAction` backwards-compatibility was firing the action on `parentView`. In most cases this worked, but it doesn't match the classic behaviour when the DButton is included inside a 'wrapper' component. In that case, the action should be triggered on the current 'this' context of the template that called the DButton. This commit mimics the Ember Classic Component manager's behaviour. It adds the `createCaller` capability to the custom component manager, and then uses the `callerSelfRef` for dispatching the action. |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |