fix: dots modal not closing when clicking top left
parent
f2a1eeb971
commit
af8e338676
|
@ -154,7 +154,13 @@ function DotsModal({ isOpen, closeModal, data }) {
|
|||
const bottomRightX = 200; // width
|
||||
const bottomRightY = 52; // height of item
|
||||
|
||||
if (x < topLeftX || x > bottomRightX || y < topLeftY || y > bottomRightY) {
|
||||
if (
|
||||
x < topLeftX ||
|
||||
x > bottomRightX ||
|
||||
x < bottomRightX ||
|
||||
y < topLeftY ||
|
||||
y > bottomRightY
|
||||
) {
|
||||
closeModal();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue