oruga icon indicating copy to clipboard operation
oruga copied to clipboard

OField message slot not rendered when horizontal

Open lucifilote opened this issue 3 years ago • 5 comments

Overview of the problem

Oruga version: [0.5.6] Vuejs version: [2.7.10] OS/Browser:

Description

When using <o-field horizontal> <template #message>Message goes here</template> </o-field>

The #message slot is not rendered.

Steps to reproduce

  1. Create an o-field with horizontal set to true
  2. add child template for slot #message

Expected behavior

Message slot should be rendered

Actual behavior

Message slot is not rendered

lucifilote avatar Oct 12 '22 12:10 lucifilote

hey @lucifilote ! I believe that this behaviour is intentional https://github.com/oruga-ui/oruga/blob/develop/packages/oruga/src/components/field/Field.vue#L34-L40

message slot will exist only if horizontal props is not enabled!

yoji-kojio avatar Oct 22 '22 18:10 yoji-kojio

@jtommy @astagi can you tell us if this is intentional or a bug? 😸

yoji-kojio avatar Oct 22 '22 18:10 yoji-kojio

@yoji-kojio it's a bug!

jtommy avatar Oct 25 '22 06:10 jtommy

@jtommy can you assign to me? I will open a PR :D

yoji-kojio avatar Oct 25 '22 10:10 yoji-kojio

@yoji-kojio I had to revert your PR, it shows two messages and it break the HTML template

jtommy avatar Nov 14 '22 21:11 jtommy

Any update on this issue?

tector avatar Mar 13 '24 16:03 tector