neo.mjs 6.15.9 → 6.15.10

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.
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='6.15.9'
23
+ * @member {String} version='6.15.10'
24
24
  */
25
- version: '6.15.9'
25
+ version: '6.15.10'
26
26
  }
27
27
 
28
28
  /**
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='6.15.9'
23
+ * @member {String} version='6.15.10'
24
24
  */
25
- version: '6.15.9'
25
+ version: '6.15.10'
26
26
  }
27
27
 
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "6.15.9",
3
+ "version": "6.15.10",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -260,12 +260,12 @@ const DefaultConfig = {
260
260
  useVdomWorker: true,
261
261
  /**
262
262
  * buildScripts/injectPackageVersion.mjs will update this value
263
- * @default '6.15.9'
263
+ * @default '6.15.10'
264
264
  * @memberOf! module:Neo
265
265
  * @name config.version
266
266
  * @type String
267
267
  */
268
- version: '6.15.9'
268
+ version: '6.15.10'
269
269
  };
270
270
 
271
271
  Object.assign(DefaultConfig, {
@@ -651,16 +651,19 @@ class DomAccess extends Base {
651
651
  * @param {HTMLElement} [data.target]
652
652
  */
653
653
  monitorAutoGrowHandler(data) {
654
- const
655
- target = data.target || this.getElement(data.id),
656
- { style } = target,
657
- { style : inputStyle } = target.closest('.neo-textarea');
658
-
659
- // Measure the scrollHeight when forced to overflow, then set height to encompass the scrollHeight
660
- style.height = style.minHeight = 0;
661
- inputStyle.setProperty('--textfield-input-height', `${target.scrollHeight + 5}px`);
662
- inputStyle.setProperty('height', '');
663
- style.height = style.minHeight = ''
654
+ const target = data.target || this.getElement(data.id);
655
+
656
+ if (target) {
657
+ const
658
+ { style } = target,
659
+ { style : inputStyle } = target.closest('.neo-textarea');
660
+
661
+ // Measure the scrollHeight when forced to overflow, then set height to encompass the scrollHeight
662
+ style.height = style.minHeight = 0;
663
+ inputStyle.setProperty('--textfield-input-height', `${target.scrollHeight + 5}px`);
664
+ inputStyle.setProperty('height', '');
665
+ style.height = style.minHeight = ''
666
+ }
664
667
  }
665
668
 
666
669
  /**