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] - cannot make it open when using extendsVariant with Select #2706

Open
HitEagle opened this issue Apr 14, 2024 · 2 comments
Open

[BUG] - cannot make it open when using extendsVariant with Select #2706

HitEagle opened this issue Apr 14, 2024 · 2 comments
Labels
🐛 Type: Bug Something isn't working

Comments

@HitEagle
Copy link

NextUI Version

2.2.10

Describe the bug

whenenver customize variant with select, like below doc, then I cannot open the listbox whenenver I click/hover the new select.
the doc:

import {extendVariants, Select} from "@nextui-org/react";

const MyInput = extendVariants(Select, {
  // whether edit or new variant not make sense, both result in the same bug
  defaultVaraiants: {
    variant: "flat",
    color: "default",
    size: "md",
    labelPlacement: "inside",
    fullWidth: "true",
    isDisabled: "false",
    isMultiline:  "false",
    disableAnimation: "false",
    disableSelectorIconRotation: "false",
 }
})
//then if I use 'MyInput', the default open behaviour will not take effect, also onOpenChange cannot be triggered

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. use the code above
  2. import 'MyInput.tsx' to any app.tsx

Expected behavior

I expected to see the onOpen behaviour show as default behaviour of select button

Screenshots or Videos

No response

Operating System Version

Windows 11/10

Browser

Chrome

@HitEagle HitEagle added the 🐛 Type: Bug Something isn't working label Apr 14, 2024
Copy link

linear bot commented Apr 14, 2024

@HitEagle
Copy link
Author

also , I am wondering, what if I want to customize the listItem slot in MyInput, seems there's no slot in Select, only listboxWrapper and listbox slot, but not listboxItem slot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant