🐛 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]
|
) : t.data.node.template[n]
|
||||||
.multiline ? (
|
.multiline ? (
|
||||||
<div>
|
<ShadTooltip
|
||||||
<ShadTooltip
|
|
||||||
delayDuration={1000}
|
delayDuration={1000}
|
||||||
content={buildContent(
|
content={buildContent(
|
||||||
t.data.node.template[
|
t.data.node.template[
|
||||||
|
|
@ -383,6 +382,8 @@ export default function ApiModal({ flow }: { flow: FlowType }) {
|
||||||
].value
|
].value
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
<div>
|
||||||
|
|
||||||
<TextAreaComponent
|
<TextAreaComponent
|
||||||
disabled={false}
|
disabled={false}
|
||||||
editNode={true}
|
editNode={true}
|
||||||
|
|
@ -403,8 +404,9 @@ export default function ApiModal({ flow }: { flow: FlowType }) {
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</ShadTooltip>
|
|
||||||
</div>
|
</div>
|
||||||
|
</ShadTooltip>
|
||||||
|
|
||||||
) : (
|
) : (
|
||||||
<InputComponent
|
<InputComponent
|
||||||
editNode={true}
|
editNode={true}
|
||||||
|
|
|
||||||
|
|
@ -40,9 +40,8 @@ export default function CodeAreaModal({
|
||||||
setOpen(x);
|
setOpen(x);
|
||||||
if (x === false) {
|
if (x === false) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
closePopUp();
|
|
||||||
setCloseEdit("editcode");
|
setCloseEdit("editcode");
|
||||||
|
closePopUp();
|
||||||
}, 300);
|
}, 300);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,11 +38,12 @@ export default function GenericModal({
|
||||||
const [myValue, setMyValue] = useState(value);
|
const [myValue, setMyValue] = useState(value);
|
||||||
const { dark } = useContext(darkContext);
|
const { dark } = useContext(darkContext);
|
||||||
const { setErrorData, setSuccessData } = useContext(alertContext);
|
const { setErrorData, setSuccessData } = useContext(alertContext);
|
||||||
const { closePopUp } = useContext(PopUpContext);
|
const { closePopUp, setCloseEdit } = useContext(PopUpContext);
|
||||||
const ref = useRef();
|
const ref = useRef();
|
||||||
function setModalOpen(x: boolean) {
|
function setModalOpen(x: boolean) {
|
||||||
setOpen(x);
|
setOpen(x);
|
||||||
if (x === false) {
|
if (x === false) {
|
||||||
|
setCloseEdit("generic");
|
||||||
closePopUp();
|
closePopUp();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue