caiofsouza / vue-backtotop

A Back-to-top component for Vue.js, which scroll page to the top when clicked
https://caiofsouza.github.io/vue-backtotop/example/
MIT License
182 stars 42 forks source link

Attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates #5

Closed botmaster closed 6 years ago

botmaster commented 6 years ago

Prop "visibleoffset" is passed to component BackToTop, but the declared prop name is "visibleOffset". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "visible-offset" instead of "visibleOffset".

caiofsouza commented 6 years ago

Hey @botmaster,

Of course, the name of props and the passed attributes are different, and I'll change that on the next version,

Thanks for you suggestion