creativetimofficial / vue-argon-design-system

Vue Argon Design System
http://demos.creative-tim.com/vue-argon-design-system/#/
853 stars 854 forks source link

Toggle buttons can't be unchecked #42

Open antonio-fr opened 4 years ago

antonio-fr commented 4 years ago

The toggle buttons in the Landing demo can't be unchecked in Chrome and Firefox. This issue is present on the online demo also.

Here's the console output in Firefox with a "serve" run :

[Vue warn]: Invalid prop: type check failed for prop "value". Expected Boolean, got Event 

found in

---> <BaseSwitch> at src/components/BaseSwitch.vue
       <CustomControls> at src/views/components/CustomControls.vue
         <Components> at src/views/Components.vue
           <FadeTransition>
             <App> at src/App.vue
               <Root> vue.runtime.esm.js:619
    VueJS 22
        warn
        assertProp
        validateProp
        updateChildComponent
        prepatch
        patchVnode
        updateChildren
        patchVnode
        updateChildren
        patchVnode
        updateChildren
        patchVnode
        updateChildren
        patchVnode
        patch
        _update
        updateComponent
        get
        run
        flushSchedulerQueue
        nextTick
        flushCallbacks
antonio-fr commented 4 years ago

Any hints or fix ?

antonio-fr commented 4 years ago

I guess the issue is maybe because the "$listeners" is a kind of example placeholder.