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

[Bug Report][3.1.2] v-text-field details slot - not replacing default content #16535

Open
marcpaskell opened this issue Jan 26, 2023 · 5 comments
Assignees
Labels
C: VTextField VTextField T: bug Functionality that does not work as intended/expected

Comments

@marcpaskell
Copy link

Environment

Vuetify Version: 3.1.2
Vue Version: 3.2.45
Browsers: Chrome 109.0.0.0
OS: Mac OS 10.15.7

Steps to reproduce

Add a #details slot to a v-text-field

Expected Behavior

Content of slot replaces everything in that area

Actual Behavior

Content of slot is placed in between errors and counter...

Reproduction Link

https://codepen.io/pasco82/pen/YzjLMvV?editors=1011

@hostafrica
Copy link

Can confirm that it's still an issue on vuetify version: 3.1.7

@lioneaglesolutions
Copy link
Collaborator

Not 100% sure if the slot is designed to take over the whole messages section - I would assume it does. Is it as simple as checking if the slot is present before rendering VMessages @johnleider ?

{ hasDetails && (
<div class="v-input__details">
<VMessages
id={ messagesId.value }
active={ hasMessages }
messages={ messages.value }
v-slots={{ message: slots.message }}
/>
{ slots.details?.(slotProps.value) }
</div>
)}

@kappaflow
Copy link

kappaflow commented May 12, 2023

Can confirm the issue with v.3.2.4. I can't properly use v-slot for hint because of an empty block that takes space.
Have to use:

<template v-slot:details>
  <div class="!absolute v-messages">
    Some text with a <a href='#'>link</a>
  </div>
</template>

@johnleider johnleider added T: bug Functionality that does not work as intended/expected C: VTextField VTextField and removed S: triage labels May 14, 2023
@johnleider johnleider self-assigned this May 14, 2023
@KaelWD
Copy link
Member

KaelWD commented Feb 12, 2024

I think the reason for this is VTextField always passes a details slot for the counter, if the details slot replaced messages then VTextField would have to reimplement messages too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VTextField VTextField T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

6 participants