Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.46k stars 145 forks source link

Documentation doesn't reflect accurate example at Methods page #896

Closed Ashlayyy closed 3 months ago

Ashlayyy commented 4 months ago

At the Methods page in the documentation there is a inaccurate representation of the implementation.

I have attached a screenshot, the part where it isn't correct is ref(null), if you define this as null it never will be anything besides null.

Unfortunately I am not that gifted in programming that I know what's wrong with it, but hopefully someone can figure out what should be changed :)

image

Jasenkoo commented 3 months ago

Nothing wrong with the example. It's working as expected. You can see it in this simple example.

If your ref is never updated, there could be a mismatch in the variable name and what you set in ref="".

You can always get more info in the documentation