@cocreate/text 1.14.7 → 1.14.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.14.8](https://github.com/CoCreate-app/CoCreate-text/compare/v1.14.7...v1.14.8) (2022-01-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removed if case that resulted in value not inserting if oldValue and newValue where equal ([187167e](https://github.com/CoCreate-app/CoCreate-text/commit/187167e03fb1cfc5132848f443d32d4f2d3ffe8e))
7
+
1
8
  ## [1.14.7](https://github.com/CoCreate-app/CoCreate-text/compare/v1.14.6...v1.14.7) (2022-01-11)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/text",
3
- "version": "1.14.7",
3
+ "version": "1.14.8",
4
4
  "description": "A simple text component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "text",
package/src/index.js CHANGED
@@ -308,8 +308,7 @@ async function updateElement ({element, collection, document_id, name, value, st
308
308
  _updateElementText(element, "", start, start + length);
309
309
  }
310
310
  if(value) {
311
- if (element.value != value)
312
- _updateElementText(element, value, start, start);
311
+ _updateElementText(element, value, start, start);
313
312
  }
314
313
  }
315
314
  else {