Closed qkdreyer closed 6 years ago
v2.x supports text input by default.
The date will change when the input element triggers event change
not input
I didn't manage to use it on your demo page : http://recordit.co/ll71gTGdzj This is using https://unpkg.com/vue2-datepicker@2.4.0/lib/index.js
Yes, because it set the not-before
. so you types a invalid date, it don't change.
Indeed, thanks. Would it be possible to update the popup date while typing ?
I don't want to change it for now, because it will trigger many unnecessary input
event and there will be a lot of invalid time.
Would you accept a PR if this feature is disabled by default ?
You can easily implement it by modifying the method.
import DatePicker from 'vue2-datepicker'
const handleInput = DatePicker.methods.handleInput
DatePicker.methods.handleInput = function (event) {
handleInput.call(this, event)
this.handleChange(event)
this.showPopup()
}
Would it be possible to support text input ? I could also try to implement it if you could guide me a little
This plugin has implemented it : http://g.recordit.co/9AeBccW1EQ.gif Link : http://blog.w3cub.com/vue2-calendar/