Skip to content

Commit

Permalink
Fixed Bug 52887 - Web:Files:SelectFileDialog: The picture is replaced…
Browse files Browse the repository at this point in the history
… through the context menu in the editor.
  • Loading branch information
TatianaLopaeva committed Dec 16, 2021
1 parent 17d2c04 commit 37ee77d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,16 @@ const SelectFileDialogAsideView = ({
};
const isHeaderChildren = !!header;

const onMouseEvent = (event) => {
event.stopPropagation();
};

return (
<StyledAsidePanel visible={isPanelVisible}>
<StyledAsidePanel
visible={isPanelVisible}
onMouseUp={onMouseEvent}
onMouseDown={onMouseEvent}
>
<Backdrop
onClick={onClose}
visible={isPanelVisible}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ class SelectFileDialogModalView extends React.Component {

onSelectFolder && onSelectFolder(folder[0]);
};

onMouseEvent = (event) => {
event.stopPropagation();
};
render() {
const {
t,
Expand Down Expand Up @@ -169,7 +173,11 @@ class SelectFileDialogModalView extends React.Component {
const isHeaderChildren = !!header;

return (
<StyledAsidePanel visible={isPanelVisible}>
<StyledAsidePanel
visible={isPanelVisible}
onMouseUp={this.onMouseEvent}
onMouseDown={this.onMouseEvent}
>
<ModalDialog
visible={isPanelVisible}
zIndex={zIndex}
Expand Down

0 comments on commit 37ee77d

Please sign in to comment.