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
|
<IconComponent
|
||||||
name={data.node?.flow ? "Ungroup" : name}
|
name={data.node?.flow ? "Ungroup" : name}
|
||||||
className={
|
className={
|
||||||
"generic-node-icon" +
|
"generic-node-icon " +
|
||||||
(!showNode && "absolute inset-x-6 h-12 w-12")
|
(!showNode ? "absolute inset-x-6 h-12 w-12" : "")
|
||||||
}
|
}
|
||||||
iconColor={`${nodeColors[types[data.type]]}`}
|
iconColor={`${nodeColors[types[data.type]]}`}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,11 @@ export default function TextAreaComponent({
|
||||||
}, [disabled]);
|
}, [disabled]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex w-full items-center">
|
<div
|
||||||
|
className={
|
||||||
|
"flex w-full items-center " + (disabled ? "pointer-events-none" : "")
|
||||||
|
}
|
||||||
|
>
|
||||||
<GenericModal
|
<GenericModal
|
||||||
type={TypeModal.TEXT}
|
type={TypeModal.TEXT}
|
||||||
buttonText="Finishing Editing"
|
buttonText="Finishing Editing"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue