feat(input): Add drag prevention to popover and improve icon fallback handling (#4544)

This commit is contained in:
Cristhian Zanforlin Lousa 2024-11-12 20:28:23 -03:00 committed by GitHub
commit 1199690a76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 8 deletions

View file

@ -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 &&

View file

@ -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",