Skip to content

Commit

Permalink
Merge pull request #43 from abusix/add-z-index-to-multicombobox-options
Browse files Browse the repository at this point in the history
fix(multi-combobox-options): Add z-index to multicombobox options
  • Loading branch information
pallendes authored Sep 27, 2023
2 parents 7c04b29 + 7e0a5af commit 7b23c10
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import React from "react";
import { Combobox as HeadlessCombobox } from "@headlessui/react";
import { classNames } from "../../../util/class-names";

export interface MultiComboboxOptionsProps {
children: React.ReactNode;
className?: string;
}

const MultiComboboxOptions = ({ children }: MultiComboboxOptionsProps) => {
const MultiComboboxOptions = ({ children, className }: MultiComboboxOptionsProps) => {
return (
<HeadlessCombobox.Options
hold
className="absolute mt-1 max-h-60 w-full overflow-auto rounded-md border border-neutral-300 bg-neutral-0 shadow-md outline-none ring-0"
className={classNames(
"absolute mt-1 max-h-60 w-full overflow-auto rounded-md border border-neutral-300 bg-neutral-0 shadow-md outline-none ring-0",
className
)}
>
{children}
</HeadlessCombobox.Options>
Expand Down

0 comments on commit 7b23c10

Please sign in to comment.