Skip to content

Commit

Permalink
fix: removed utils
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed May 7, 2024
1 parent 5a33bbd commit 71a5003
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,5 @@
"webpack-log": "^3.0.1"
},
"dependencies": {
"@cocreate/utils": "^1.33.6"
}
}
8 changes: 3 additions & 5 deletions src/setValue.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { getAttributes } from '@cocreate/utils';
import { storage } from './getValue';

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

if (el.type == 'checkbox') {
let inputs = [el]
Expand Down

0 comments on commit 71a5003

Please sign in to comment.