Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor: Focus is applied to the editor when it uses v-model even if it is not the first focus-able component #6934

Open
cberthiaume opened this issue Dec 7, 2024 · 2 comments
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback

Comments

@cberthiaume
Copy link

Describe the bug

When a page/component loads that includes an Editor with a value assigned via v-model the editor will get the focus even if other focus-able components appear before it. There appears to be no way to disable this behavior if it is not desired.

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-7vnpcgat?file=src%2FApp.vue

PrimeVue version

4.2.4

Vue version

3.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Create a page that includes a text input.
  2. Add an Editor below the input with a value provided by v-model.

Expected behavior

The Editor component does not get the focus by default. There should be a way to control if autofocusing on the Editor is desired.

@cberthiaume cberthiaume added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 7, 2024
@cberthiaume
Copy link
Author

This behavior causes undesired behavior in my application making it difficult to use. Rolling PrimeVue back to version 4.2.1 restores the expected behavior.

@tugcekucukoglu tugcekucukoglu added Resolution: Help Wanted Issue or pull request requires extra help and feedback and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 10, 2024
Copy link

Due to PrimeVue team's busy roadmap, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback
Projects
None yet
Development

No branches or pull requests

2 participants