mathieustan / vue-datepicker

A clean datepicker made with VueJs

Home Page:https://vue-datepicker.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue when referencing JS in HTML instead of via a bundler ( BodyScrollLock, dayJS dependencies and its onOpen, onClose events)

TrendyTim opened this issue · comments

Even though this seems to be a dead project, just thought id mention this here for anyone else going to use this project outside a bundler.

This is unworkable in its current state when used in webpages when just referencing the JS

Even if you include body scroll lock and dayjs dependencies and apply a fix for case discrepancies.

<script>
BodyScrollLock = bodyScrollLock; Dayjs=dayjs;
</script>

it ignores the vue recommendations for event naming and emits onOpen and onClose making them impossible to handle (why vue never just enforced lowercase for event names i dont know).