🐛 fix(ApiModal): remove unnecessary div tag to fix layout issue
🐛 fix(codeAreaModal): fix closePopUp function call placement to ensure proper functionality 🐛 fix(genericModal): set closeEdit value to "generic" to fix issue with closing the modal
This commit is contained in:
parent
b29a54c678
commit
dc4d1ccd65
3 changed files with 8 additions and 6 deletions
|
|
@ -374,8 +374,7 @@ export default function ApiModal({ flow }: { flow: FlowType }) {
|
|||
/>
|
||||
) : t.data.node.template[n]
|
||||
.multiline ? (
|
||||
<div>
|
||||
<ShadTooltip
|
||||
<ShadTooltip
|
||||
delayDuration={1000}
|
||||
content={buildContent(
|
||||
t.data.node.template[
|
||||
|
|
@ -383,6 +382,8 @@ export default function ApiModal({ flow }: { flow: FlowType }) {
|
|||
].value
|
||||
)}
|
||||
>
|
||||
<div>
|
||||
|
||||
<TextAreaComponent
|
||||
disabled={false}
|
||||
editNode={true}
|
||||
|
|
@ -403,8 +404,9 @@ export default function ApiModal({ flow }: { flow: FlowType }) {
|
|||
);
|
||||
}}
|
||||
/>
|
||||
</ShadTooltip>
|
||||
</div>
|
||||
</ShadTooltip>
|
||||
|
||||
) : (
|
||||
<InputComponent
|
||||
editNode={true}
|
||||
|
|
|
|||
|
|
@ -40,9 +40,8 @@ export default function CodeAreaModal({
|
|||
setOpen(x);
|
||||
if (x === false) {
|
||||
setTimeout(() => {
|
||||
closePopUp();
|
||||
setCloseEdit("editcode");
|
||||
|
||||
closePopUp();
|
||||
}, 300);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,11 +38,12 @@ export default function GenericModal({
|
|||
const [myValue, setMyValue] = useState(value);
|
||||
const { dark } = useContext(darkContext);
|
||||
const { setErrorData, setSuccessData } = useContext(alertContext);
|
||||
const { closePopUp } = useContext(PopUpContext);
|
||||
const { closePopUp, setCloseEdit } = useContext(PopUpContext);
|
||||
const ref = useRef();
|
||||
function setModalOpen(x: boolean) {
|
||||
setOpen(x);
|
||||
if (x === false) {
|
||||
setCloseEdit("generic");
|
||||
closePopUp();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue