Skip to content

Commit 71a5003

Browse files
committed
fix: removed utils
1 parent 5a33bbd commit 71a5003

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,5 @@
5858
"webpack-log": "^3.0.1"
5959
},
6060
"dependencies": {
61-
"@cocreate/utils": "^1.33.6"
6261
}
6362
}

src/setValue.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { getAttributes } from '@cocreate/utils';
21
import { storage } from './getValue';
32

43
HTMLElement.prototype.setValue = function (value, dispatch) {
@@ -40,10 +39,9 @@ const setValue = (el, value, dispatch) => {
4039
// TODO: el.options vs rendenring options from src
4140
if (el.tagName == 'INPUT' || el.tagName == 'TEXTAREA' || el.tagName == 'SELECT' && el.options.length) {
4241
// TODO: attribute config undefined when used with onload-value
43-
let isCrdt = el.getAttribute('crdt') // getAttributes(el)
44-
// if (isCrdt == null || isCrdt == undefined)
45-
// isCrdt = el.getAttribute('crdt')
46-
if (isCrdt == "true" || el.type === 'file') return;
42+
let isCrdt = el.getAttribute('crdt')
43+
if (isCrdt == "true" || el.type === 'file')
44+
return;
4745

4846
if (el.type == 'checkbox') {
4947
let inputs = [el]

0 commit comments

Comments
 (0)