oruga
oruga copied to clipboard
OField message slot not rendered when horizontal
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
- Create an o-field with
horizontalset totrue - add child template for slot #message
Expected behavior
Message slot should be rendered
Actual behavior
Message slot is not rendered
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!
@jtommy @astagi can you tell us if this is intentional or a bug? 😸
@yoji-kojio it's a bug!
@jtommy can you assign to me? I will open a PR :D
@yoji-kojio I had to revert your PR, it shows two messages and it break the HTML template
Any update on this issue?