Fixed disabled not disabling text input

This commit is contained in:
Lucas Oliveira 2023-11-30 17:33:47 -03:00
commit b8f8ec9c90
2 changed files with 7 additions and 3 deletions

View file

@ -179,8 +179,8 @@ export default function GenericNode({
<IconComponent
name={data.node?.flow ? "Ungroup" : name}
className={
"generic-node-icon" +
(!showNode && "absolute inset-x-6 h-12 w-12")
"generic-node-icon " +
(!showNode ? "absolute inset-x-6 h-12 w-12" : "")
}
iconColor={`${nodeColors[types[data.type]]}`}
/>

View file

@ -20,7 +20,11 @@ export default function TextAreaComponent({
}, [disabled]);
return (
<div className="flex w-full items-center">
<div
className={
"flex w-full items-center " + (disabled ? "pointer-events-none" : "")
}
>
<GenericModal
type={TypeModal.TEXT}
buttonText="Finishing Editing"