Comments (4)
I’m not seeing this behavior. Can you perhaps give a step-by-step procedure to reproduce it?
from formkit.
Here we fill the form and we see it in localstorage.
After you submit the form, localstorage remain.
from formkit.
I see what you’re saying. I guess I would have a different expectation than you about what should happen here. In my view, the form should reset to it’s initial state which includes the file property{ file: [] }
) since the the file
input type should always be set to an array even when empty, and the local storage should always be a reflection of that precise state, even if that state is empty.
I think your expectation is that when a form is "empty" there is no local storage at all, is that correct?
If so then the primary question becomes how we determine what the "initial" or "empty" state of the form is. This is complicated by the fact that some inputs provide initial values, such as the file
input or multiple checkboxes. Knowing what an "empty" form is becomes rather complex.
Is there any deleterious effect from the local storage existing when the form is in an empty state?
from formkit.
Closing — please feel free to re-open if there's an argument against the current behavior.
from formkit.
Related Issues (20)
- Regenesis theme dark mode dropdown listbox border radius styles are incorrect
- Mask: Modify Tokens example / functionality is broken
- Using keyboard to navigate outside of current month closes datepicker. HOT 1
- Togglebuttons with multiple attribute returns array of selected strings when on-value is set HOT 3
- Datepicker day cells should probably have user-select set to none in Regenesis. HOT 1
- Slider input with multiple handles glitches when linked inputs are visible and handles cross over eachother
- Datepicker giving `Invalid offset: -00:36.75` in all demos HOT 2
- Bullets are displayed in repeater inside schema HOT 2
- Focus state triggered when setting value programmatically HOT 2
- Add support for border and controls for collapsing the group and list type
- Automatically position datepicker panel wrapper
- Currency input not handling min and max with step of 1000 well.
- [Pro] Slider: Chart breaking after data update
- [pro] pro components not rendering in nuxt project HOT 1
- [Curreny] Option to hide the currency
- Datepicker - Unable to set custom validation message for rule 'invalidDate'
- Improve error message when duplicate keys are detected (in __DEV__) HOT 3
- `datepicker`: Weekdays do not honor locale HOT 2
- Forms remain disabled after rejection of submit handler promise
- Custom classes for text inputs broken HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formkit.