Vuetify: 1.2.0-beta.1
Last working version: 1.1.8
Vue: 2.5.17
Browsers: Chrome 68.0.3440.106
OS: Mac OS 10.13.6
Scroll down page
offsetTop should count up
offsetTop stays at 0
https://codepen.io/anon/pen/djEWGp
beta0 same problem but no console message
same problem here: https://next.vuetifyjs.com/en/directives/scrolling
The same is happening with the resize directive, so this is probably affecting all directives.
e.g. the browser error messages are:
[Vue warn]: Failed to resolve directive: scroll
[Vue warn]: Failed to resolve directive: resize
This issue still exists in 1.3.11
My mistake. I forgot that I was using a la carte.
I came across the same problem when I use v-scroll directive in vue and vuetify project. I have tried it both [email protected] and [email protected] and the problem remains.
I came across the same problem when I use v-scroll directive in vue and vuetify project. I have tried it both [email protected] and [email protected] and the problem remains.
If using a la carte, you should do this.
import { Scroll } from 'vuetify/lib/directives'
Vue.use(Vuetify, {
directives: {
Scroll
}
}
I came across the same problem when I use v-scroll directive in vue and vuetify project. I have tried it both [email protected] and [email protected] and the problem remains.
If using a la carte, you should do this.
import { Scroll } from 'vuetify/lib/directives'
Vue.use(Vuetify, {
directives: {
Scroll
}
}
Thanks !
@raojingpeng I'm not using a la carte
And when I try
import { Scroll } from 'vuetify/lib/directives';
I got error
FATAL Invalid or unexpected token
@import '../../styles/styles.sass'
^
SyntaxError: Invalid or unexpected token
at Object.compileFunction (vm.js:403:10)
at Generator.next (<anonymous>)
at Object.<anonymous> (node_modules\vuetify\lib\directives\ripple\index.js:1)
at Generator.next (<anonymous>)
Most helpful comment
If using a la carte, you should do this.
import { Scroll } from 'vuetify/lib/directives'
Vue.use(Vuetify, {
directives: {
Scroll
}
}