Skip to content

Commit bea2bfb

Browse files
committed
fix: getAttribute crdt
1 parent fa3c83f commit bea2bfb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/setValue.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ const setValue = (el, value, dispatch) => {
3535

3636
// TODO: el.options vs rendenring options from src
3737
if (el.tagName == 'INPUT' || el.tagName == 'TEXTAREA' || el.tagName == 'SELECT' && el.options.length) {
38-
let { isCrdt } = getAttributes(el)
39-
if (isCrdt == null || isCrdt == undefined)
40-
isCrdt = el.getAttribute('crdt')
38+
// TODO: attribute config undefined when used with onload-value
39+
let isCrdt = el.getAttribute('crdt') // getAttributes(el)
40+
// if (isCrdt == null || isCrdt == undefined)
41+
// isCrdt = el.getAttribute('crdt')
4142
if (isCrdt == "true" || el.type === 'file') return;
4243

4344
if (el.type == 'checkbox') {

0 commit comments

Comments
 (0)