Vue Scroll Focus Auto focus the text field when you scroll the page Installation npm i --save-dev vue-scroll-focus import VueScrollFocus from 'vue-scroll-focus' Vue.use(VueScrollFocus) Usage <element v-scroll-focus></element>