guillaumepotier / Garlic.js

Automatically persist your forms' text and select field values locally, until the form is submitted.

Home Page:http://garlicjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Form inputs are cleared upon submit

bighoho123 opened this issue · comments

When the 'destroy' option is set (default), the form will clear all the input resulting an empty submission.

This might be a typo in the code.

The following code will fix the issue.