Skip to content

Cascade Select clicking a few times causes the component to freeze #15869

@willrj

Description

@willrj

Describe the bug

When clicking repeatedly in quick succession, the component freezes the browser.

This error also occurs in the PrimeNG examples.
https://primeng.org/cascadeselect

Environment

No special Environment. This even happens in the documentation: https://primeng.org/cascadeselect

Reproducer

https://primeng.org/cascadeselect

Angular version

18.0.1

PrimeNG version

17.18.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

10.5.0

Browser(s)

Chrome

Steps to reproduce the behavior

  1. Open the web page that contains the Cascade Select component.
  2. Identify the Cascade Select component on the page.
  3. Start clicking the Cascade Select component repeatedly and quickly.
  4. Observe that after a few clicks, the component becomes unresponsive.
  5. Notice that the entire browser starts to freeze and stops responding to further interactions.
  6. Verify that this issue is reproducible consistently with the same steps.
  7. Confirm that the error also occurs in the PrimeNG examples provided on primeNG website.

This step-by-step description should help in understanding and reproducing the error.

Expected behavior

The Cascade Select component should remain responsive and fully functional, even when clicked repeatedly and quickly. The browser should not freeze or become unresponsive, and the component should handle rapid successive clicks without any performance issues.

Metadata

Metadata

Labels

LTS-PORTABLEIssue's fix will be ported to supported LTS versionsType: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions