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} disabled={disabled}
required={required} required={required}
className={cn( className={cn(
"popover-input truncate pr-4", "popover-input nodrag truncate pr-4",
editNode && "px-3", editNode && "px-3",
editNode && disabled && "h-fit w-fit", editNode && disabled && "h-fit w-fit",
disabled && disabled &&

View file

@ -179,13 +179,15 @@ export default function InputComponent({
)} )}
> >
<ForwardedIconComponent <ForwardedIconComponent
name={getIconName( name={
getIconName(
disabled!, disabled!,
selectedOption!, selectedOption!,
optionsIcon, optionsIcon,
nodeStyle!, nodeStyle!,
isToolMode!, isToolMode!,
)} ) || "ChevronsUpDown"
}
className={cn( className={cn(
disabled ? "cursor-grab text-placeholder" : "cursor-pointer", disabled ? "cursor-grab text-placeholder" : "cursor-pointer",
"icon-size", "icon-size",