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] - Placeholder Misalignment in Multi-Select Dropdown with Chips #4321

Open
berikidis opened this issue Dec 10, 2024 · 1 comment
Open

Comments

@berikidis
Copy link

NextUI Version

2.6.7

Describe the bug

In a multi-select dropdown component with chips and labelPlacement="inside", when isMultiline={true}, the placeholder text overlaps with the input area. This misalignment causes the placeholder to appear partially hidden, as shown in the attached screenshot.

here is my code

<Select
        name={fields.paymentMethods.name}
        label="Payment Methods"
        placeholder="Select payment methods"
        selectionMode="multiple"
        isMultiline={true}
        size="lg"
        defaultSelectedKeys={selectedPaymentMethods}
        classNames={{
           trigger: 'py-2',
        }}
        renderValue={(items) => (
           <div className="flex flex-wrap gap-2">
              {items.map((item) => (
                 <Chip key={item.key}>{item.textValue}</Chip>
              ))}
           </div>
        )}
     >
        {paymentMethods.map((method) => (
           <SelectItem key={method.value} value={method.value}>
              {method.label}
           </SelectItem>
        ))}
</Select>

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Implement a multi-select dropdown with chips in your project.
  2. Configure the dropdown with the properties:
isMultiline={true}
labelPlacement="inside"

Expected behavior

The placeholder text should remain fully visible and aligned properly when the isMultiline is true and labelPlacement is inside

Screenshots or Videos

Screenshot 2024-12-10 at 19 20 59 Screenshot 2024-12-10 at 19 21 08

Operating System Version

macOS

Browser

Chrome

Copy link

linear bot commented Dec 10, 2024

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

No branches or pull requests

1 participant