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

+ modifer not working appending to string #21

Open
iamface opened this issue Sep 18, 2018 · 2 comments
Open

+ modifer not working appending to string #21

iamface opened this issue Sep 18, 2018 · 2 comments

Comments

@iamface
Copy link

iamface commented Sep 18, 2018

Hello,

I'm trying to get the + modifier to work in a conditional string, but it does not seem to work.

Important: note that you can append a + modifier at the end of the string to specify that the conditional rendering happens for all greater breakpoints.

Vue.use(VueMq, {
  breakpoints: {
    mobile: 450,
    tablet: 900,
    laptop: 1250,
    desktop: Infinity
  }
})

<div v-if="$mq == 'tablet+'">tablet and higher</div>

It works just fine without the +, but I'm trying to trigger my tablet+ sizing. Do I need to use the MqLayout component for this to work?

Thanks!

@shapedigital
Copy link

Yep yep. Can confirm I'm also experiencing the same.

@AndrewBogdanovTSS
Copy link

this is not working due to how this module was done, it allows you to use '+' syntax only when you use mq-layout component and imho it's a design flaw

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

No branches or pull requests

3 participants