diff --git a/src/bundle/Resources/public/js/scripts/fieldType/ezauthor.js b/src/bundle/Resources/public/js/scripts/fieldType/ezauthor.js index 2966e55ced..f466033cf0 100644 --- a/src/bundle/Resources/public/js/scripts/fieldType/ezauthor.js +++ b/src/bundle/Resources/public/js/scripts/fieldType/ezauthor.js @@ -118,6 +118,12 @@ bulkDeleteButton.setAttribute('disabled', 'disabled'); + const authorsRowsExist = !!container.querySelector(SELECTOR_AUTHOR); + + if (!authorsRowsExist) { + container.querySelector('.ibexa-btn--add-author').click(); + } + this.updateDisabledState(container); this.reinit(); }