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

Setting Scheduler to empty array reload the page #4525

Open
mbechev opened this issue Jan 23, 2025 · 0 comments
Open

Setting Scheduler to empty array reload the page #4525

mbechev opened this issue Jan 23, 2025 · 0 comments

Comments

@mbechev
Copy link
Contributor

mbechev commented Jan 23, 2025

Description

When setting the Scheduler to an empty array the page is reloaded, causing the MultiSelect popup to be closed while its autoClose option is set to false.
Also, the following error is thrown:

ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'true'. Current value: 'false'. Expression location: MultiSelectComponent component.

If we trigger some change in the Scheduler before setting the data to an empty array, for example changing the view, then there are no issues, and the popup remains open.

Image

The issue also doesn't happen when setting the Grid to an empty array. Then the MultiSelect popup remains opened which is correct behavior.

Steps To Reproduce

  1. Select an option from the MultiSelect.
  2. Notice the popup is closed
    https://stackblitz.com/edit/angular-eqqlpf2j?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.module.ts

You can commend line 47 and uncomment 48 to see how the Grid behaves:

  onValueChange() {
    // this.events = [];
    this.gridData = [];
  }

Actual Behavior

The MultuSelect popup is being closed due to setting the Scheduler data to an empty array.

Expected Behavior

The state of other components should not be affected by changes in the Scheduler. The MultiSelect popup state should remain open.

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

No branches or pull requests

1 participant