Skip to content

Commit

Permalink
Do not open query details on text selecting (#1693)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 authored Oct 18, 2024
1 parent 6883168 commit 423ee47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Resources/queries/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@
if($details.children().length) {
$li.addClass(csscls('expandable'))
.on('click', (event) => {
if (window.getSelection().type == "Range") {
return;
}

if ($(event.target).closest(`.${csscls('params')}`).length) {
return;
}
Expand Down

0 comments on commit 423ee47

Please sign in to comment.