While using FormKit's LocalStorage plugin, I have noticed that the value for the Datepicker input (pro) is being removed from the LocalStorage when refreshing the page. This bug HAPPENS ONLY when the entire form is wrapped with Nuxt's <ClientOnly>
component, which is a temporary solution to a different bug - formkit/formkit#720
- Run
npm install
- Open the
formkit.config.ts
file and swapfk-XXXXXXXXXXX
with your FormKit's Pro Key - Run the project locally (
npm run dev
) and openlocalhost:3000
- Add your name and pick a date
- Open
DevTools > Application > Local Storage
- Find
formkit-contact
key and open thedata
property (There should bebirthday
key inside) - Refresh the page (the
birthday
key is gone and the input resets to the default state!)
Make sure to install the dependencies:
npm install
Open the formkit.config.ts
file and swap fk-XXXXXXXXXXX
with your FormKit's Pro Key
Start the development server on http://localhost:3000
npm run dev