array field add ref

This commit is contained in:
Yuri Kuznetsov
2024-11-03 17:57:48 +02:00
parent d47e2e68b1
commit 77df2ed4ce
3 changed files with 38 additions and 17 deletions
+5 -1
View File
@@ -870,8 +870,12 @@ class ArrayFieldView extends BaseFieldView {
};
}
/**
* @protected
* @return {Promise<import('views/modals/array-field-add').default>}
*/
actionAddItem() {
this.createView('addModal', this.addItemModalView, this.getAddItemModalOptions(), view => {
return this.createView('dialog', this.addItemModalView, this.getAddItemModalOptions(), view => {
view.render();
view.once('add', item => {