Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Clicking the validate button (Ok) in range-mode without picking both start and end date triggers an error #16

Closed
kfirba opened this issue Sep 19, 2019 · 1 comment
Labels
Bug Something isn't working
Milestone

Comments

@kfirba
Copy link
Contributor

kfirba commented Sep 19, 2019

@mathieustan it's me again.

A bug I found is when you open the datepicker in range mode with the validation buttons option turned on and click "Ok" without picking any date or not picking the end date, an error is triggered:

vue.common.dev.js?4650:1893 TypeError: Cannot read property 'format' of undefined
    at formatDateToSend (vue-datepicker.esm.js?bd0e:674)
    at VueComponent.validateDate (vue-datepicker.esm.js?bd0e:4344)
    at invokeWithErrorHandling (vue.common.dev.js?4650:1859)
    at Proxy.invoker (vue.common.dev.js?4650:2184)
    at invokeWithErrorHandling (vue.common.dev.js?4650:1859)
    at Proxy.Vue.$emit (vue.common.dev.js?4650:3879)
    at Proxy.Vue.<computed> (backend.js:1781)
    at validate (vue-datepicker.esm.js?bd0e:3945)
    at invokeWithErrorHandling (vue.common.dev.js?4650:1859)
    at Proxy.invoker (vue.common.dev.js?4650:2184)
@mathieustan mathieustan added the Bug Something isn't working label Sep 23, 2019
@mathieustan mathieustan added this to the 0.1.9 milestone Sep 23, 2019
@mathieustan
Copy link
Owner

Should be fixed in latest release 0.1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants