EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
attachments field search fix
Yuri Kuznetsov2303a8175171
diff --git a/client/src/views/fields/attachment-multiple.js b/client/src/views/fields/attachment-multiple.jsindex 047996b95d..a8fb76eeec 100644--- a/client/src/views/fields/attachment-multiple.js+++ b/client/src/views/fields/attachment-multiple.js@@ -87,6 +87,8 @@ class AttachmentMultipleFieldView extends BaseFieldView {/** @protected */showPreviewsInListMode = false+ initialSearchIsNotIdle = true;+/*** @inheritDoc* @type {Array<(function (): boolean)|string>}@@ -291,11 +293,11 @@ class AttachmentMultipleFieldView extends BaseFieldView {}setupSearch() {- this.events['change select.search-type'] = e => {- const type = $(e.currentTarget).val();+ this.addHandler('change', 'select.search-type', (e, /** HTMLSelectElement */target) => {+ this.handleSearchType(target.value);- this.handleSearchType(type);- };+ this.trigger('change');+ });}focusOnInlineEdit() {