Skip to content

Commit

Permalink
feat(input): Add drag prevention to popover and improve icon fallback…
Browse files Browse the repository at this point in the history
… handling (langflow-ai#4544)
  • Loading branch information
Cristhianzl authored and diogocabral committed Nov 26, 2024
1 parent 5930c4c commit 13b988b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down
16 changes: 9 additions & 7 deletions src/frontend/src/components/inputComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 13b988b

Please sign in to comment.