Skip to content

EspoCRM – Open Source CRM Application

comment

Yuriif5938ebbdc41
diff --git a/client/src/views/modals/edit.js b/client/src/views/modals/edit.js
index 7257e6f649..b18dbfe9b3 100644
--- a/client/src/views/modals/edit.js
+++ b/client/src/views/modals/edit.js
@@ -112,6 +112,8 @@ class EditModalView extends ModalView {
e.stopPropagation();
e.preventDefault();
+ // Refactor the following code so that it can be easily re-used in other edit modals.
+
const focusedFieldView = this.getRecordView().getFocusedFieldView();
if (focusedFieldView) {