Skip to content

Commit c269f6f

Browse files
committed
Fix bug when clicking move popup with mouse
1 parent 5c07376 commit c269f6f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/popup.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,10 @@
320320
const allSpaceEls = document.querySelectorAll('.space');
321321
Array.prototype.forEach.call(allSpaceEls, el => {
322322
// eslint-disable-next-line no-param-reassign
323-
el.onclick = () => {
324-
handleSelectAction(el);
323+
const existingClickHandler = el.onclick;
324+
el.onclick = e => {
325+
existingClickHandler(e);
326+
handleSelectAction();
325327
};
326328
});
327329
}

0 commit comments

Comments
 (0)