fix(ui): Fix overlapping Modals (#14964)

This commit is contained in:
Saketh Varma 2025-10-10 08:03:24 +05:30 committed by GitHub
parent 06aebfe86f
commit be7cc44670
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -40,7 +40,14 @@ export const AddImageButton = () => {
commandName="insertImage"
onClick={handleButtonClick}
/>
<Modal title="Add Image" visible={isModalVisible} okText="Save" onOk={handleOk} onCancel={handleCancel}>
<Modal
title="Add Image"
open={isModalVisible}
okText="Save"
onOk={handleOk}
onCancel={handleCancel}
zIndex={1200}
>
<Form form={form} layout="vertical" colon={false} requiredMark={false}>
<Form.Item
name="src"

View File

@ -58,7 +58,7 @@ export const LinkModal = (props: LinkModalProps) => {
};
return (
<Modal title="Add Link" okText="Save" onCancel={handleClose} onOk={handleOk} visible={visible}>
<Modal title="Add Link" okText="Save" onCancel={handleClose} zIndex={1200} onOk={handleOk} open={visible}>
<Form
form={form}
layout="vertical"