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

4.0.0-beta4 InputText/Inplace: Autofocus not working #5842

Closed
micvm opened this issue Jun 6, 2024 · 3 comments
Closed

4.0.0-beta4 InputText/Inplace: Autofocus not working #5842

micvm opened this issue Jun 6, 2024 · 3 comments

Comments

@micvm
Copy link

micvm commented Jun 6, 2024

Describe the bug

The autofocus attribute of InputText is ignored and not working. This can be seen best in the example of the Inplace component of the primevue4 documentation page.

Reproducer

https://stackblitz.com/edit/q8962z?file=src%2FApp.vue

PrimeVue version

4.0.0-beta 4

Vue version

3.x

Language

TypeScript

Build / Runtime

TypeScript

Browser(s)

No response

Steps to reproduce the behavior

  1. Click on the Inplace component to toggle edit mode.

Expected behavior

Contained InputText has autofocus attribute and should therefore be in focus and the caret appear.

@micvm micvm added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 6, 2024
@tugcekucukoglu
Copy link
Member

It seems there is a chromium issue about this. Firefox works as expected.

@tugcekucukoglu tugcekucukoglu removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 6, 2024
@micvm
Copy link
Author

micvm commented Jun 6, 2024

Thanks for the quick reply. Some more information:

  • I tried on Ubuntu Linux. Firefox 126.0.1 (64-bit) the reproducer and it does not work.
  • I tried on Windows 11, Firefox 126.0 (64bit) the reproducer and it does not work.

Interesting enough, the same stackblitz reproducer for Primevue 3.50 does not have this issue: https://stackblitz.com/edit/v8kpfu?file=src%2FApp.vue : it works with Windows 11, Chrome 125.

@micvm
Copy link
Author

micvm commented Jun 19, 2024

After a more detailed investigation, I saw you had the same issue in primevue3 (issue #5770 ). May you apply the changes done in commit 6d4e489 also to the Primevue4 Inplace component? Seems to solve the issue .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants