We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"flatpickr": "^4.6.9"
I am using flatpickr with Vue.js and I am trying to force setting the time to midnight by doing this
flatpickr
Vue.js
setMidnight(flatpickrObject) { flatpickrObject.hourElement.value = 12 flatpickrObject.minuteElement.value = 00 flatpickrObject.secondElement.value = 00 flatpickrObject.amPM.textContent = 'AM' }
but I get this error legacy octal literals are not allowed in strict mode
legacy octal literals are not allowed in strict mode
setMidnight(flatpickrObject) { flatpickrObject.hourElement.value = 11 flatpickrObject.minuteElement.value = 59 flatpickrObject.secondElement.value = 59 flatpickrObject.amPM.textContent = 'PM' }
the above works fine, it seems like there is a problem with the 00 and I cannot figure out a workaround for it.
00
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My Environment
"flatpickr": "^4.6.9"
I am using
flatpickr
withVue.js
and I am trying to force setting the time to midnight by doing thisbut I get this error
legacy octal literals are not allowed in strict mode
the above works fine, it seems like there is a problem with the
00
and I cannot figure out a workaround for it.The text was updated successfully, but these errors were encountered: