You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: properly focus password input on error without using $el or ref
- Removed `passwordInput` ref and reliance on `$el` to access the input field inside the `Input` component.
- Fixed `TypeError` caused by calling `focus()` on the component instance.
- Now focusing the password input via `formElement.password` in the form's submit error handler.
- Used `nextTick` to ensure the DOM is updated before focusing.
- This approach is cleaner, avoids reliance on component internals, and works reliably with shadcn-vue components.
0 commit comments