Fixed dropdown going upwards
This commit is contained in:
parent
fff9bd0e28
commit
e43f56df32
2 changed files with 5 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ export default function Dropdown({
|
||||||
? "dropdown-component-outline"
|
? "dropdown-component-outline"
|
||||||
: "dropdown-component-false-outline",
|
: "dropdown-component-false-outline",
|
||||||
"w-full justify-between font-normal",
|
"w-full justify-between font-normal",
|
||||||
editNode ? "input-edit-node" : "py-2"
|
editNode ? "input-edit-node" : "py-2",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<span data-testid={`value-dropdown-` + id}>
|
<span data-testid={`value-dropdown-` + id}>
|
||||||
|
|
@ -78,6 +78,8 @@ export default function Dropdown({
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
)}
|
)}
|
||||||
<PopoverContentDropdown
|
<PopoverContentDropdown
|
||||||
|
side="bottom"
|
||||||
|
avoidCollisions={!!children}
|
||||||
className="nocopy nowheel nopan nodelete nodrag noundo p-0"
|
className="nocopy nowheel nopan nodelete nodrag noundo p-0"
|
||||||
style={
|
style={
|
||||||
children
|
children
|
||||||
|
|
@ -105,7 +107,7 @@ export default function Dropdown({
|
||||||
name="Check"
|
name="Check"
|
||||||
className={cn(
|
className={cn(
|
||||||
"ml-auto h-4 w-4 text-primary",
|
"ml-auto h-4 w-4 text-primary",
|
||||||
value === option ? "opacity-100" : "opacity-0"
|
value === option ? "opacity-100" : "opacity-0",
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</CommandItem>
|
</CommandItem>
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,7 @@ export default function InputComponent({
|
||||||
className="nocopy nopan nodelete nodrag noundo p-0"
|
className="nocopy nopan nodelete nodrag noundo p-0"
|
||||||
style={{ minWidth: refInput?.current?.clientWidth ?? "200px" }}
|
style={{ minWidth: refInput?.current?.clientWidth ?? "200px" }}
|
||||||
side="bottom"
|
side="bottom"
|
||||||
|
avoidCollisions={false}
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
<Command
|
<Command
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue