Vue Autofocus Directive

JSON →
library 1.0.4 ·javascript abandoned
verified May 27, 2026

The `vue-autofocus-directive` package provides a straightforward custom directive for Vue.js applications, designed to automatically apply focus to elements upon page load or when components are rendered. Based directly on the Vue 2 custom directive tutorial, this package is explicitly compatible with Vue 2.x environments. Its current stable version is 1.0.4, with no recent updates, indicating a mature yet static codebase. The package's primary differentiator is its minimalist approach, offering a direct implementation of the autofocus pattern without introducing complex abstractions. While effective for existing Vue 2 projects, it lacks official support for Vue 3, necessitating alternative strategies or manual adaptation for newer Vue applications. Developers should be aware of browser-specific limitations, particularly regarding mobile Safari's handling of the autofocus attribute.

total hits 16
actors 6 distinct systems
last hit 22h ago human
GPTBot
5
MetaBot
4
Script
1
Search engines
2
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany · 🇪🇸 Spain