Skip to content

Problem with "fluid" property in InputText #54

@lmc3s3f0r

Description

@lmc3s3f0r

When using "fluid", a PrimeVue component should fill the container's width and height. In my case, I'm using PrimeVue unstyled.

This, however, doesn't happen in InputText, because its "div" wrapper, unlike other components like InputNumber, DatePicker, Select or TextArea, is not getting the classes defined in the theme when props.fluid === true.

I'll try to elaborate. I've set my p-formkit class to be "h-full min-h-[46px] bg-orange-400", and I've set "fluid" to "true" in all my PrimeVue components.

In that scenario, this is how an InputText looks:
Screenshot from 2024-09-23 14-44-11

You can see that there's room to fill below the input (you can see the div.p-formkit orange background). That's because the wrapper doesn't contain the "size-full" that

For comparison, here are some InputNumber components, which work fine:
Screenshot from 2024-09-23 14-39-48

In this case, you can see that the wrapper has the "size-full" applied.

Hope it helps. Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions