Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add messages prop to message slot in BField #3776

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

GMartigny
Copy link
Contributor

Proposed Changes

  • In the BField component, the slot #message now receive a :messages prop with computedMessage
    This allow users to easily wrap help messages.
<BField>
  <BInput />
  <template #message="{ message }">
    <strong class="custom-wrapper">{{  messages }}</strong>
  </template>
</BField>

@jtommy
Copy link
Member

jtommy commented Sep 2, 2022

It's ok, but I don't understand the need.
Probably only when message comes from internal validation

@GMartigny
Copy link
Contributor Author

It's ok, but I don't understand the need. Probably only when message comes from internal validation

Exactly ! I had the issue with required input.

@jtommy jtommy merged commit 6ec8c64 into buefy:dev Sep 2, 2022
@GMartigny GMartigny deleted the feature/passMessagesToFieldSlot branch September 8, 2022 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants