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

Select/MultiSelect: onOverlayLeave should not try and focus on Filter #6564

Open
1Map opened this issue Oct 12, 2024 · 1 comment
Open

Select/MultiSelect: onOverlayLeave should not try and focus on Filter #6564

1Map opened this issue Oct 12, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@1Map
Copy link
Contributor

1Map commented Oct 12, 2024

Describe the bug

The following line in your code throws an error as filterInput is null:

focus(this.$refs.filterInput.$el);

focus(this.$refs.filterInput.$el);

I do not think it should try and focus on the filter during onOverlayLeave as the filterInput is not always there (null)

Reproducer

N/A

PrimeVue version

Latest

Vue version

4.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@1Map 1Map added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 12, 2024
@1Map 1Map changed the title Select/MultiSelect: Undefined filterInput throws error if null Select/MultiSelect: onOverlayLeave should not try and focus on Filter Oct 12, 2024
@CCodam
Copy link

CCodam commented Oct 12, 2024

Duplicate of #6539 and #6545

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants