Skip to content

A platform for community discussion. Free, open, simple.

FIX: Restore the unconditional yield in d-button (#22759)

Jarek Radosz6725a1d7bd93
diff --git a/app/assets/javascripts/discourse/app/components/d-button.gjs b/app/assets/javascripts/discourse/app/components/d-button.gjs
index 4a8173ad7b5..207958d0fc4 100644
--- a/app/assets/javascripts/discourse/app/components/d-button.gjs
+++ b/app/assets/javascripts/discourse/app/components/d-button.gjs
@@ -64,12 +64,12 @@ export default class DButton extends GlimmerComponentWithDeprecatedParentView {
…
{{~/if~}}
</span>
- {{~else if (has-block)~}}
- {{yield}}
{{~else~}}
&#8203;
{{! Zero-width space character, so icon-only button height = regular button height }}
{{~/if~}}
+
+ {{yield}}
</button>
</template>