drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.39k stars 1.63k forks source link

icheck not working with vuejs v-model binding #336

Closed litan1106 closed 7 years ago

litan1106 commented 8 years ago

icheck not working with vuejs v-model binding

antongorodezkiy commented 8 years ago

+1

antongorodezkiy commented 8 years ago

Ok, seems iCheck v.1 doesn't trigger change event https://github.com/fronteed/icheck/issues/68 so I believe that's the issue in iCheck v.1


I solved this issue just setting component data property manually:

ready() {
    $('.js-shipping-methods').on('ifChecked', (e) => {
      this.shippingPrice = $(e.target).data('price');
    });
  },
jdme commented 5 years ago

Here is good workaround: https://stackoverflow.com/a/50064908/1448871