@cocreate/text 1.14.2 → 1.14.3
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 +7 -0
- package/demo/demos.1.html +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [1.14.3](https://github.com/CoCreate-app/CoCreate-text/compare/v1.14.2...v1.14.3) (2021-12-23)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* checkAttributeValue collection or document return ([500c156](https://github.com/CoCreate-app/CoCreate-text/commit/500c156c14fafec187ea40481a5f30f389ec4dc6))
|
7
|
+
|
1
8
|
## [1.14.2](https://github.com/CoCreate-app/CoCreate-text/compare/v1.14.1...v1.14.2) (2021-12-15)
|
2
9
|
|
3
10
|
|
package/demo/demos.1.html
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
<body class="padding:20px">
|
12
12
|
<form collection="apples1" document_id="61ad22d7a8b6b4001aa360d1">
|
13
|
-
<textarea name="name1" class="width:100% padding:0px margin:0px
|
13
|
+
<textarea name="name1" class="width:100% padding:0px margin:0px" rows="10"></textarea>
|
14
14
|
<textarea name="name2" class="width:100%" rows="10"></textarea>
|
15
15
|
<iframe name='name2' width="100%" contenteditable></iframe>
|
16
16
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -29,7 +29,7 @@ function initElement (element) {
|
|
29
29
|
const { collection, document_id, name, isRealtime, isCrdt, isCrud, isSave, isRead } = crud.getAttr(element);
|
30
30
|
if(document_id == "pending") return;
|
31
31
|
if(isCrdt == "false" || isRealtime == "false" || element.type == 'number') return;
|
32
|
-
if(!crud.checkAttrValue(collection)
|
32
|
+
if(!crud.checkAttrValue(collection) || !crud.checkAttrValue(document_id)) return;
|
33
33
|
if(element.tagName === "INPUT" && ["text", "email", "tel", "url"].includes(element.type) || element.tagName === "TEXTAREA" || element.hasAttribute('contenteditable')) {
|
34
34
|
if(!collection || !document_id || !name) return;
|
35
35
|
|