@cocreate/text 1.26.2 → 1.26.3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.26.3](https://github.com/CoCreate-app/CoCreate-text/compare/v1.26.2...v1.26.3) (2024-02-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * realtime defaults to false ([bb50bda](https://github.com/CoCreate-app/CoCreate-text/commit/bb50bda41000223ae64836e3826283c3c47d6dff))
7
+
1
8
  ## [1.26.2](https://github.com/CoCreate-app/CoCreate-text/compare/v1.26.1...v1.26.2) (2024-02-05)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/text",
3
- "version": "1.26.2",
3
+ "version": "1.26.3",
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
@@ -35,7 +35,7 @@ function initElement(element) {
35
35
  }
36
36
  if (['_id', 'organization_id', 'storage', 'database', 'array'].includes(key))
37
37
  return
38
- if (isCrdt == "false" || isRealtime == "false" || element.type == 'number')
38
+ if (!isRealtime || isCrdt == "false" || isRealtime == "false" || element.type == 'number' || element.type == 'file' || element.getAttribute('type') === 'file')
39
39
  return
40
40
  if (!checkValue(array) || !checkValue(object) || !checkValue(key))
41
41
  return