mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 19:16:37 +00:00
Prevent form submit when any combobox-dropdown is open (fixes #1236)
This commit is contained in:
@@ -4,6 +4,11 @@ $('#save-recipe-pos-button').on('click', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
if ($(".combobox-menu-visible").length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var jsonData = $('#recipe-pos-form').serializeJSON();
|
||||
jsonData.recipe_id = Grocy.EditObjectParentId;
|
||||
delete jsonData.display_amount;
|
||||
|
Reference in New Issue
Block a user