mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 09:46:03 +00:00
Prevent form submit when any combobox-dropdown is open (fixes #1236)
This commit is contained in:
@@ -4,6 +4,11 @@ $('#save-shoppinglist-button').on('click', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
if ($(".combobox-menu-visible").length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var jsonData = $('#shoppinglist-form').serializeJSON();
|
||||
if (!jsonData.product_id)
|
||||
{
|
||||
|
Reference in New Issue
Block a user