mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
Components getting selected while resizing query panel fix (#2494)
This commit is contained in:
parent
910a2b5917
commit
b93e843a5e
1 changed files with 7 additions and 3 deletions
|
|
@ -76,9 +76,13 @@ export const QueryPanel = ({ darkMode }) => {
|
|||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [windowSize.height, isExpanded, isWindowResizing]);
|
||||
|
||||
const onMouseDown = useCallback(() => {
|
||||
if (isTopOfQueryPanel) setIsDraggingQueryPane(true);
|
||||
}, [isTopOfQueryPanel]);
|
||||
const onMouseDown = useCallback(
|
||||
(e) => {
|
||||
e.preventDefault();
|
||||
if (isTopOfQueryPanel) setIsDraggingQueryPane(true);
|
||||
},
|
||||
[isTopOfQueryPanel]
|
||||
);
|
||||
|
||||
const onMouseUp = useCallback((e) => {
|
||||
setIsDraggingQueryPane(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue