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
{{ message }}
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
Breakpoints are registered in the BreakPointRegistry. But the MatchMediaObservable does not iterate that registry to configure the default listeners. This means only the "all" breakpoint is announced when using the observable.
The text was updated successfully, but these errors were encountered:
Currently the work-around requires a manual registration process like this:
constructor(
@Inject(MatchMediaObservable)media$,
@Inject(BreakPointRegistry)breakpoints,// Only injected due to bug #65
@Inject(MatchMedia)mediaWatcher,// Only injected due to bug #65){// This is a BUG described above// We must manually register all the mediaQueries registered in the BreakPointRegistrybreakpoints.items.forEach((bp:BreakPoint)=>mediaWatcher.observe(bp.mediaQuery));this._subscription=media$.subscribe((change:MediaChange)=>{letisMobile=(change.mqAlias=='xs')||(change.mqAlias=='sm');this.isOpen=!isMobile;});}
Breakpoints are registered in the BreakPointRegistry. But the MatchMediaObservable does not iterate that registry to configure the default listeners. This means only the "all" breakpoint is announced when using the observable.
The text was updated successfully, but these errors were encountered: