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

AutoComplete: Cannot intercept enter key #16160

Closed
LoaderB0T opened this issue Aug 2, 2024 · 0 comments · Fixed by #16161
Closed

AutoComplete: Cannot intercept enter key #16160

LoaderB0T opened this issue Aug 2, 2024 · 0 comments · Fixed by #16161
Labels
LTS-16-PORTABLE LTS-FIXED-16.9.15 Type: Bug Issue contains a bug related to a specific component. Something about the component is not working v18-port
Milestone

Comments

@LoaderB0T
Copy link
Contributor

Describe the bug

When using the autocomplete component, it is not possible to listen for an enter key press.

I assume the reason is that the enter key is used to confirm a selected autocomplete. However, if no option is selected, the keypress event should still trigger.

Environment

primeng master version

Reproducer

No response

Angular version

18.0.2

PrimeNG version

master

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

22.4.1

Browser(s)

No response

Steps to reproduce the behavior

        <p-autoComplete
          (keypress)="searchFieldKeyPress($event)" />

searchFieldKeyPress will never be called with the enter key.

Expected behavior

No response

@LoaderB0T LoaderB0T added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 2, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Aug 8, 2024
@cetincakiroglu cetincakiroglu added this to the 17.18.8 milestone Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-16-PORTABLE LTS-FIXED-16.9.15 Type: Bug Issue contains a bug related to a specific component. Something about the component is not working v18-port
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants