Skip to content

Commit

Permalink
fix: getAttribute crdt
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Feb 12, 2024
1 parent fa3c83f commit bea2bfb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/setValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ 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) {
let { isCrdt } = getAttributes(el)
if (isCrdt == null || isCrdt == undefined)
isCrdt = el.getAttribute('crdt')
// 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;

if (el.type == 'checkbox') {
Expand Down

0 comments on commit bea2bfb

Please sign in to comment.