Skip to content

.setList not setting date input nor a number input #175

@MrJoshFisher

Description

@MrJoshFisher

Hello all,,

I'm having an issue with the setList function whereby its not setting the values for a number field nor a date field,

<input type="number" name="pet_treat" value="" class="form-control" />
<input type="date" name="pet_birthday" value="" class="form-control" />

setList(
  [
    {
      "pet_treat": "2",
      "pet_birthday": "18-05-2020",
    }
   ]
)

end up getting the error:

jquery.min.js?ver=3.6.1:2 Uncaught TypeError: Cannot read properties of undefined (reading 'set')

it works if I change the inputs to type text, select or checkbox which work fine, just for some reason date and number fields cause the error

Any advice?

Cheer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions