mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08: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. |
||
---|---|---|
.. | ||
admin | ||
bootstrap-json | ||
confirm-new-email | ||
dialog-holder | ||
discourse | ||
discourse-common | ||
discourse-ensure-deprecation-order | ||
discourse-hbr | ||
discourse-plugins | ||
discourse-widget-hbs | ||
docs | ||
ember-addons | ||
ember-cli-progress-ci | ||
locales | ||
pretty-text | ||
select-kit | ||
truth-helpers | ||
wizard | ||
.licensee.json | ||
.npmrc | ||
discourse-js-processor.js | ||
handlebars-shim.js | ||
package.json | ||
polyfills.js | ||
service-worker.js.erb | ||
yarn.lock |