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

thx, big work for me #42

Open
blstdmi opened this issue Jun 20, 2019 · 2 comments
Open

thx, big work for me #42

blstdmi opened this issue Jun 20, 2019 · 2 comments

Comments

@blstdmi
Copy link

blstdmi commented Jun 20, 2019

can you record a video of how the main mechanism works?
how the plugin works.. as it was written..
can be explain to on what occupations https://scrimba.com

I use the code for the checkbox menu thx!

<input v-model="checked" type="checkbox" id="checkbox-menu">
        <label for="checkbox-menu">checkbox menu</label>
        <div   v-on-clickaway="away" class="menu_elements"> .... </div>
      mixins: [ clickaway ],
        name: "bodyfooter",
      data(){return{
        checked: false
        }
      },
      methods: {
        away: function() {
        //  console.log('clicked away');
          //this.checked = !this.checked
          if (this.checked){
            this.checked = 0
          }

        },
@blstdmi
Copy link
Author

blstdmi commented Jun 20, 2019

add for fix..

          if (this.checked){
            console.log(event)
            this.checked = 0
            if(event.target.getAttribute("for")== "checkbox-menu")

            this.checked = 1
          }

@blstdmi
Copy link
Author

blstdmi commented Jun 20, 2019

but maybe change code to https://codepen.io/lerte/pen/XgqrOr

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

1 participant