From 71a5003bf7ca85b704140e10b132d8728600f518 Mon Sep 17 00:00:00 2001 From: frankpagan Date: Tue, 7 May 2024 12:53:22 -0500 Subject: [PATCH] fix: removed utils --- package.json | 1 - src/setValue.js | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index fa5d2ce..4dfd427 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,5 @@ "webpack-log": "^3.0.1" }, "dependencies": { - "@cocreate/utils": "^1.33.6" } } diff --git a/src/setValue.js b/src/setValue.js index 4db46b9..54c9bee 100644 --- a/src/setValue.js +++ b/src/setValue.js @@ -1,4 +1,3 @@ -import { getAttributes } from '@cocreate/utils'; import { storage } from './getValue'; HTMLElement.prototype.setValue = function (value, dispatch) { @@ -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]