Prevent form submit when any combobox-dropdown is open (fixes #1236)

This commit is contained in:
Bernd Bestel
2020-12-31 13:45:14 +01:00
parent 1e27f6c127
commit 1459f8c441
26 changed files with 150 additions and 0 deletions

View File

@@ -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;