Skip to content

Commit 1a4fce7

Browse files
committed
fix: trigger in add movimenti
1 parent f11ebf7 commit 1a4fce7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

modules/movimenti/add.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@
115115
return;
116116
}
117117
118+
// Ignora l\'evento se un select2 è aperto o se il focus è su un elemento select2
119+
if ($(".select2-container--open").length > 0 || $(event.target).closest(".select2-container").length > 0) {
120+
return;
121+
}
122+
118123
let key = window.event ? event.keyCode : event.which; // IE vs Netscape/Firefox/Opera
119124
$("#articolo-missing").addClass("hidden");
120125
let barcode = $("#barcode");

0 commit comments

Comments
 (0)