Skip to content

Commit

Permalink
fix: element for getValue was not defined correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Nov 5, 2021
1 parent 019d338 commit eb52990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*globals CustomEvent, btoa*/
import crud from '@cocreate/crud-client';
import input from '@cocreate/elements';
// import input from '@cocreate/elements';
import action from '@cocreate/action';
import render from '@cocreate/render';

Expand Down Expand Up @@ -287,7 +287,7 @@ const CoCreateUser = {
//. get form data
elements.forEach(el => {
let name = el.getAttribute('name');
let value = input.getValue(el) || el.getAttribute('value');
let value = el.getValue(el) || el.getAttribute('value');
if (!name || !value) return;

if (el.getAttribute('data-type') == 'array') {
Expand Down

0 comments on commit eb52990

Please sign in to comment.