Fix quick add did not always work the second time

This commit is contained in:
nathan
2023-09-19 13:53:15 -06:00
parent cb484c8f6c
commit 36f42f77db
7 changed files with 31 additions and 2 deletions

View File

@ -515,6 +515,8 @@ egw.extend('links', egw.MODULE_GLOBAL, function()
const parent = document.getElementById(_parent);
const select = document.createElement('et2-select');
select.setAttribute('id', 'quick_add_selectbox');
// Empty label is required to clear value, but we hide it
select.emptyLabel = "Select";
select.placement = "bottom end";
parent.append(select);
const plus = parent.querySelector("span");