neo.mjs 5.3.4 → 5.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/apps/ServiceWorker.mjs
CHANGED
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -237,12 +237,12 @@ const DefaultConfig = {
|
|
237
237
|
useVdomWorker: true,
|
238
238
|
/**
|
239
239
|
* buildScripts/injectPackageVersion.mjs will update this value
|
240
|
-
* @default '5.3.
|
240
|
+
* @default '5.3.6'
|
241
241
|
* @memberOf! module:Neo
|
242
242
|
* @name config.version
|
243
243
|
* @type String
|
244
244
|
*/
|
245
|
-
version: '5.3.
|
245
|
+
version: '5.3.6'
|
246
246
|
};
|
247
247
|
|
248
248
|
Object.assign(DefaultConfig, {
|
package/src/form/field/Base.mjs
CHANGED
@@ -81,7 +81,8 @@ class Base extends Component {
|
|
81
81
|
* @param {*} oldValue
|
82
82
|
*/
|
83
83
|
fireChangeEvent(value, oldValue) {
|
84
|
-
let me
|
84
|
+
let me = this,
|
85
|
+
FormContainer = Neo.form?.Container;
|
85
86
|
|
86
87
|
me.fire('change', {
|
87
88
|
component: me,
|
@@ -90,7 +91,7 @@ class Base extends Component {
|
|
90
91
|
});
|
91
92
|
|
92
93
|
ComponentManager.getParents(me).forEach(parent => {
|
93
|
-
if (parent instanceof
|
94
|
+
if (FormContainer && parent instanceof FormContainer) {
|
94
95
|
parent.fire('fieldChange', {
|
95
96
|
component: me,
|
96
97
|
oldValue,
|
@@ -122,8 +123,10 @@ class Base extends Component {
|
|
122
123
|
onFocusLeave(data) {
|
123
124
|
super.onFocusLeave?.(data);
|
124
125
|
|
126
|
+
let FormContainer = Neo.form?.Container;
|
127
|
+
|
125
128
|
ComponentManager.getParents(this).forEach(parent => {
|
126
|
-
if (parent instanceof
|
129
|
+
if (FormContainer && parent instanceof FormContainer) {
|
127
130
|
parent.fire('fieldFocusLeave', {
|
128
131
|
...data,
|
129
132
|
component: this
|
@@ -294,8 +294,9 @@ class Select extends Picker {
|
|
294
294
|
* @override
|
295
295
|
*/
|
296
296
|
fireChangeEvent(value, oldValue) {
|
297
|
-
let me
|
298
|
-
|
297
|
+
let me = this,
|
298
|
+
FormContainer = Neo.form?.Container,
|
299
|
+
record = me.record,
|
299
300
|
oldRecord;
|
300
301
|
|
301
302
|
if (!(me.forceSelection && !record)) {
|
@@ -310,7 +311,7 @@ class Select extends Picker {
|
|
310
311
|
});
|
311
312
|
|
312
313
|
ComponentManager.getParents(me).forEach(parent => {
|
313
|
-
if (parent instanceof
|
314
|
+
if (FormContainer && parent instanceof FormContainer) {
|
314
315
|
parent.fire('fieldChange', {
|
315
316
|
component: me,
|
316
317
|
oldRecord,
|