neo.mjs 5.2.13 → 5.2.14
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
@@ -16,9 +16,9 @@
|
|
16
16
|
{"id": 12, "cardIndex": 8, "isHeader": false, "isValid": null, "name": "Page 9"},
|
17
17
|
{"id": 13, "cardIndex": 9, "isHeader": false, "isValid": null, "name": "Page 10"},
|
18
18
|
{"id": 14, "cardIndex": null, "isHeader": true, "isValid": null, "name": "3. Optional data"},
|
19
|
-
{"id": 15, "cardIndex":
|
20
|
-
{"id": 16, "cardIndex":
|
21
|
-
{"id": 17, "cardIndex":
|
22
|
-
{"id": 18, "cardIndex":
|
19
|
+
{"id": 15, "cardIndex": 10, "isHeader": false, "isValid": null, "name": "Page 11"},
|
20
|
+
{"id": 16, "cardIndex": 11, "isHeader": false, "isValid": null, "name": "Page 12"},
|
21
|
+
{"id": 17, "cardIndex": 12, "isHeader": false, "isValid": null, "name": "Page 13"},
|
22
|
+
{"id": 18, "cardIndex": 13, "isHeader": false, "isValid": null, "name": "Page 14"}
|
23
23
|
]
|
24
24
|
}
|
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.2.
|
240
|
+
* @default '5.2.14'
|
241
241
|
* @memberOf! module:Neo
|
242
242
|
* @name config.version
|
243
243
|
* @type String
|
244
244
|
*/
|
245
|
-
version: '5.2.
|
245
|
+
version: '5.2.14'
|
246
246
|
};
|
247
247
|
|
248
248
|
Object.assign(DefaultConfig, {
|
package/src/list/Base.mjs
CHANGED
@@ -136,6 +136,11 @@ class Base extends Component {
|
|
136
136
|
* @member {String|null} itemRole=null
|
137
137
|
*/
|
138
138
|
itemRole = null
|
139
|
+
/**
|
140
|
+
* Defaults to false in case useHeaders is set to true
|
141
|
+
* @member {Boolean} scrollIntoViewOnFocus=true
|
142
|
+
*/
|
143
|
+
scrollIntoViewOnFocus = true
|
139
144
|
|
140
145
|
/**
|
141
146
|
* @param {Object} config
|
@@ -145,6 +150,10 @@ class Base extends Component {
|
|
145
150
|
|
146
151
|
let me = this;
|
147
152
|
|
153
|
+
if (me.useHeaders) {
|
154
|
+
me.scrollIntoViewOnFocus = false;
|
155
|
+
}
|
156
|
+
|
148
157
|
me.addDomListeners({
|
149
158
|
click: me.onClick,
|
150
159
|
scope: me
|
@@ -488,7 +497,7 @@ class Base extends Component {
|
|
488
497
|
focus(id) {
|
489
498
|
super.focus(id);
|
490
499
|
|
491
|
-
id && Neo.main.DomAccess.scrollIntoView({
|
500
|
+
id && this.scrollIntoViewOnFocus && Neo.main.DomAccess.scrollIntoView({
|
492
501
|
behavior: 'auto',
|
493
502
|
id : id || this.id
|
494
503
|
});
|