mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Prevent form submit when any combobox-dropdown is open (fixes #1236)
This commit is contained in:
@@ -299,6 +299,11 @@ $('#save-recipe-include-button').on('click', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
if ($(".combobox-menu-visible").length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (document.getElementById("recipe-include-form").checkValidity() === false) //There is at least one validation error
|
||||
{
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user