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

grid layout with cascader #539

Open
tommy26tan opened this issue Sep 24, 2024 · 0 comments
Open

grid layout with cascader #539

tommy26tan opened this issue Sep 24, 2024 · 0 comments

Comments

@tommy26tan
Copy link

Parent element: <div className={relative gap-4 text-black grid grid-cols-${maxX} grid-rows-${maxY} w-full h-full overflow-y-auto overflow-x-auto}>

Component return:
return (
<Cascader
options={cascaderOptions}
id={id}
expandTrigger="hover"
className={z-10 ${className}}
dropdownClassName={z-50}
dropdownStyle={{ position: 'absolute', zIndex: 50 }}
onChange={(value, selectedOptions) =>
setInputValue(selectedOptions.map((o) => o.label).join(', '))
}
>
);

The tailwind grid layout does not work properly with cascader, Parent option displayed together with sub options, and arrows displayed one line after option.

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