mirror of
https://github.com/grocy/grocy.git
synced 2025-08-24 05:56:55 +00:00
Prevent form submit when any combobox-dropdown is open (fixes #1236)
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
if ($(".combobox-menu-visible").length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var jsonData = $('#barcode-form').serializeJSON();
|
||||
jsonData.amount = jsonData.display_amount;
|
||||
delete jsonData.display_amount;
|
||||
|
Reference in New Issue
Block a user