mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08:00
FIX: Support PluginOutlet invocations with deprecated tagName (#23913)
This regressed in af305366
This commit is contained in:
parent
88951e03bf
commit
6e004b04e1
|
@ -83,7 +83,7 @@ export default class PluginOutletComponent extends GlimmerComponentWithDeprecate
|
|||
}
|
||||
|
||||
@bind
|
||||
getConnectors({ hasBlock }) {
|
||||
getConnectors({ hasBlock } = {}) {
|
||||
const connectors = renderedConnectorsFor(
|
||||
this.args.name,
|
||||
this.outletArgsWithDeprecations,
|
||||
|
|
|
@ -460,3 +460,16 @@ module(
|
|||
});
|
||||
}
|
||||
);
|
||||
|
||||
module("Integration | Component | plugin-outlet | tagName", function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test("supports the `@tagName` argument", async function (assert) {
|
||||
await withSilencedDeprecationsAsync(
|
||||
"discourse.plugin-outlet-tag-name",
|
||||
async () =>
|
||||
await render(hbs`<PluginOutlet @name="test-name" @tagName="div" />`)
|
||||
);
|
||||
assert.dom("div").exists();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user