fix: resolved overflow issue with longer state names (#1444)

This commit is contained in:
Anmol Singh Bhatia 2023-07-07 14:11:33 +05:30 committed by GitHub
parent 7868bfa2b1
commit d564ea8898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 8 deletions

View file

@ -23,6 +23,7 @@ type CustomSearchSelectProps = {
verticalPosition?: "top" | "bottom";
noChevron?: boolean;
customButton?: JSX.Element;
className?: string;
optionsClassName?: string;
input?: boolean;
disabled?: boolean;
@ -43,6 +44,7 @@ export const CustomSearchSelect = ({
verticalPosition = "bottom",
noChevron = false,
customButton,
className = "",
optionsClassName = "",
input = false,
disabled = false,
@ -70,7 +72,7 @@ export const CustomSearchSelect = ({
return (
<Combobox
as="div"
className={`${!selfPositioned ? "relative" : ""} flex-shrink-0 text-left`}
className={`${!selfPositioned ? "relative" : ""} flex-shrink-0 text-left ${className}`}
{...props}
>
{({ open }: any) => (