You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could not make it work, because even though I did not change the menu visibility to false anywhere, it was somehow reset to false after reopening (and openChange handler does "explain" why - it just provides "true" or "false"). I later took a look and found out this:
close() {
if (this._open) {
this._open = false;
this._resetContainer();
this._positioning.destroy();
this._zoneSubscription?.unsubscribe();
this._destroyCloseHandlers$.next();
this.openChange.emit(false); // it should not be invoked, if it called from ngOnDestroy
this._changeDetector.markForCheck();
}
}
ngOnDestroy() {
this.close();
}
The text was updated successfully, but these errors were encountered:
I am trying to reopen the menu which resides in a row of re-rendered grid. I use
openChange
event handler to keep track of row ID:I could not make it work, because even though I did not change the menu visibility to false anywhere, it was somehow reset to false after reopening (and openChange handler does "explain" why - it just provides "true" or "false"). I later took a look and found out this:
The text was updated successfully, but these errors were encountered: