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

Checkbox not showing? #29

Closed
maxiedaniels opened this issue Nov 23, 2017 · 2 comments
Closed

Checkbox not showing? #29

maxiedaniels opened this issue Nov 23, 2017 · 2 comments

Comments

@maxiedaniels
Copy link

maxiedaniels commented Nov 23, 2017

I've checked in both Safari and Chrome.. checkboxes aren't showing. Not sure why... I've imported at the top of my index.html page (<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pretty-checkbox@3.0/dist/pretty-checkbox.min.css"/>).

I'm using vue but I don't see why that would affect it...

<div class="pretty p-switch">
<input type="checkbox" id="checkbox" v-model="item.enabled" v-on:change="change_active(item)">
</div>
<div class="state">
<label>Check</label>
</div>
@lokesh-coder
Copy link
Owner

Hi @maxiedaniels ,

The problem is with the markup. Please try this,

<div class="pretty p-switch">
  <input type="checkbox" id="checkbox" v-model="item.enabled" v-on:change="change_active(item)">
  <div class="state">
    <label>Check</label>
  </div>
</div>

the state class element should be inside pretty tag

Let me know, if that doesn't solved the issue.

@maxiedaniels
Copy link
Author

Ah, that was it. My bad! Thank you!

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

2 participants