fix: stop propagation when drawer is opened
This commit is contained in:
parent
e21d819155
commit
4510242651
@ -21,6 +21,11 @@ export const ActionDrawer: ComposedActionDrawer = observer((props) => {
|
||||
return (
|
||||
<>
|
||||
{createPortal(
|
||||
<div
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
}}
|
||||
>
|
||||
<Drawer
|
||||
width={'50%'}
|
||||
title={field.title}
|
||||
@ -81,7 +86,8 @@ export const ActionDrawer: ComposedActionDrawer = observer((props) => {
|
||||
return s['x-component'] !== footerNodeName;
|
||||
}}
|
||||
/>
|
||||
</Drawer>,
|
||||
</Drawer>
|
||||
</div>,
|
||||
document.body,
|
||||
)}
|
||||
</>
|
||||
|
@ -27,7 +27,9 @@ export const ReadPrettyRecordPicker: React.FC = observer((props: any) => {
|
||||
return (
|
||||
<span>
|
||||
<a
|
||||
onClick={() => {
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
setVisible(true);
|
||||
setRecord(record);
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user