Comments (6)
I've fixed your issue and the demo is here Demo (will work correctly after new version is published).
When dateFormat
is set, the date string which you are using for v-model
needs to follow the format.
I figured out a way to validate the date string for single
mode but there are still too may validations further... So I gave up to implement date string validation.
Feel free to reopen this issue. Thanks for report this again. 😄
from datepicker.
I'm looking into it.
update 1: config
causes initial date is not applied.
update 2: found useful info here...config options
date string needs follow
dateFormat
I'm trying to fix this now.
from datepicker.
@luventa
I dont think it is config issue, you can remove :config
and try
from datepicker.
yes, right, flatpickr wont update its selected date unless setDate
is called.
Still working on it.
from datepicker.
Try adding this:
watch: {
// add watch on value
value(newValue){
this.datepicker.setDate(newValue, true);
}
},
from datepicker.
Already did that but the dateFormat
will interrupt date convert. But set prop value to Date type is not a good choice. Also I found some thing else, need to refactor the component.
from datepicker.
Related Issues (20)
- Selecting another month will cause the object to remain being focused HOT 1
- How can I use events? HOT 2
- syntax error on BasicInput when running tests HOT 2
- How can I use ampm option? HOT 1
- Laravel npm run production fails HOT 1
- Can't make works the toggle and clear buttons on a second datepicker on same view.
- [Vue warn]: Invalid prop: type check failed for prop "value". Expected String, got Date. HOT 1
- clicking outside calendar freezes input HOT 3
- onChange event for range picker doesn't work consistently HOT 1
- How to clear the input programmatically HOT 5
- [Vue warn]: Invalid prop: type check failed for prop "inputClass". Expected Object, got Array. HOT 1
- Please accept the pull requests! HOT 3
- Upgrade to flatpickr 3
- How to show only months? HOT 1
- Add "stylus-loader" to package.json HOT 4
- Set locale globally HOT 2
- click-away vs click-outside
- Can't delete a date once selected HOT 2
- this.$watch('config', this.redraw) doesn't seem to be triggering the redraw method
- Leap Year issue with dateFormat: 'd.m.Y' HOT 1
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 datepicker.