Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

fix(media-observer): return correct value for isActive on init #1244

Merged
merged 1 commit into from
May 8, 2020

Conversation

CaerusKaru
Copy link
Member

Previously, only triggering MatchMedia.observe would correctly
register media queries for later usage in the MediaObserver.
This is incorrect, and queries should be registered if a) they
are valid breakpoints in Angular Layout, and b) they are not
currently registered.

Fixes #1025

Previously, only triggering `MatchMedia.observe` would correctly
register media queries for later usage in the `MediaObserver`.
This is incorrect, and queries should be registered if a) they
are valid breakpoints in Angular Layout, and b) they are not
currently registered.

Fixes #1025
@CaerusKaru CaerusKaru added this to the 9.0.0-beta.30 milestone May 8, 2020
@CaerusKaru CaerusKaru merged commit bf069af into master May 8, 2020
@CaerusKaru CaerusKaru deleted the adam/fix-issue-1025 branch May 8, 2020 23:31
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MediaObserver.isActive not working before subscribe MediaObserver.media$
2 participants