Fixed disabled not disabling text input
This commit is contained in:
parent
1f4712d7ae
commit
b8f8ec9c90
2 changed files with 7 additions and 3 deletions
|
|
@ -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]]}`}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue