feat(input): Add drag prevention to popover and improve icon fallback handling (#4544)
This commit is contained in:
parent
e2bdaf5fa7
commit
1199690a76
2 changed files with 10 additions and 8 deletions
|
|
@ -127,7 +127,7 @@ const CustomInputPopover = ({
|
|||
disabled={disabled}
|
||||
required={required}
|
||||
className={cn(
|
||||
"popover-input truncate pr-4",
|
||||
"popover-input nodrag truncate pr-4",
|
||||
editNode && "px-3",
|
||||
editNode && disabled && "h-fit w-fit",
|
||||
disabled &&
|
||||
|
|
|
|||
|
|
@ -179,13 +179,15 @@ export default function InputComponent({
|
|||
)}
|
||||
>
|
||||
<ForwardedIconComponent
|
||||
name={getIconName(
|
||||
disabled!,
|
||||
selectedOption!,
|
||||
optionsIcon,
|
||||
nodeStyle!,
|
||||
isToolMode!,
|
||||
)}
|
||||
name={
|
||||
getIconName(
|
||||
disabled!,
|
||||
selectedOption!,
|
||||
optionsIcon,
|
||||
nodeStyle!,
|
||||
isToolMode!,
|
||||
) || "ChevronsUpDown"
|
||||
}
|
||||
className={cn(
|
||||
disabled ? "cursor-grab text-placeholder" : "cursor-pointer",
|
||||
"icon-size",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue