- Add: optional
disabled
prop, see #124 and #117- Note: the
disabled
prop accepts only Boolean values
- Note: the
- Change: use render function instead of template to reduce build size
- Chore: Babel 7
- Fix:
blur
event whenaltInput
is true, #102
- Add:
blur
event, #102
- Fix: umd build in webpack v4, #89
- Re-release v7.0.2, npm malfunction during publish, #87
- Chore: update webpack to v4.x
- Fix: Allow to update
locale
dynamically, fixes #77
- Fix: Don't mutate
config
object, fixes #74 - Fix: Delete all event callbacks before passing them to flatpickr in config watcher
- Change: Limit the default events to be emitted, read more, #53
- You can restore the old behaviour by using
events
props
- You can restore the old behaviour by using
- Change: Don't emit
on-change
on component mount - Add:
on-pre-calendar-position
event
- Add:
events
props to customise the emitted events, closes #53<flatpickr v-model="date" :events="['onChange']">
events
prop is optional and component emits all events when prop is not specified.
- Add: emit all events, fixes #37
- Fix: dynamically change configs, closes #20
- Change: export name, default export remains same
- Internal: Remove the need of
Object.assign
- Revert the changes made in v5.0.3
- Fix: a bug where changes in
config
object properties were not being detected
- Fix: Don't update DOM when
allowInput
is set to true in config
5.0.0 (breaking)
- Change:
input-class
prop has been removed, you can always use Vue.js inbuilt class binding
<flat-pickr v-model="date" class="form-control input"></flat-pickr>
- Similarly
name
,id
,placeholder
andrequired
props has been removed, you can still specify any number of attributes on component
<flat-pickr v-model="date" name="date-of-birth" id="js-date" placeholder="Select date" aria-required="true"></flat-pickr>
- Non module environment usage, no longer required to call
.default
Vue.component('flat-pickr', VueFlatpickr);
- Add:
- Allow timestamps as value
4.0.0 (breaking)
- Change:
- Upgrade to flatpickr v4.x
- Change
onChange
event name toon-change
- Fix:
- v-model validator method typo
- IE11 support
- tests: add test case with coverage
- chore:
dist
folder is no longer a part of repo, it will be published on npm only. It means bower no longer supported.
- Fix: value prop validation
- Fix: Prevent multiple
onChange
event after component destroy, #27
- Fix: Prevent
onChange
event being emitted twice
- Add: Emit
onChange
event, #20
3.0.0 (Breaking)
- Change:
flatPicker.vue
file name tocomponent.vue
- This will be breaking for users who were directly importing
.vue
file
- This will be breaking for users who were directly importing
- Change: Don't force
form-control
CSS class on input field, #18- If you wants to add a new class on input, you need to do like this
<flatpickr input-class="form-control custom-css-class">
:class
prop will replace default CSS class on input field
- Add: Ability to pass component name when used as plugin
Vue.use(flatPickr,'date-picker')
- You can pass name as second parameter
- Chore: Upgrade to webpack v3.x
- Fix UglifyJS issue
- New way to use as plugin, old one is deprecated, see new example
- You should NOT import plugin like this
import {flatPickrPlugin} from 'vue-flatpickr-component';
- Add
id
prop
- Rollback importing css, component is no longer importing any css
- This also applies when using this package as plugin
Vue.use()
- This also applies when using this package as plugin
- Expose
install
method, so that now you can use this package as a plugin
2.0.0 (breaking)
- Rename
input-name
prop toname
- No longer support flatpickr v2.x, always pull v3.x
- No longer importing flatpickr css, you need to import css by yourself, see examples
- Improve value prop validation
- Add value prop validation
- Allow flatPickr v3.x stable
- Rename
instance
tofp
, if you were accessing it through$refs
this may be a breaking change for you
- Regenerate build files
- Allow array of objects and date object as default value
- Make
wrap
optional - From now, you need to wrap by your-self and pass
config.wrap
as true - No longer force bootstrap, you are free to use any of CSS framework
- Initial release