Closed JensNielsen81 closed 7 years ago
Yes, that's the intended behaviour. The library is meant for progressive enhancement - unmatch only fires, if the query has been previously matched (it's meant for undoing anything you did in match, not to be the else
case).
If you want to run code when it doesn't match, you can register a new handler and either:
not
keywordscreen and (min-width: 767px)
(though i can't remember if min-width
is inclusive, please adjust accordingly)
Not sure i am doing this right.
This only gives me the matched version ie, the mobile one, my page is blank on desktop until it hits 767px width.