nz-toggle icon indicating copy to clipboard operation
nz-toggle copied to clipboard

nz-toggle fire only on user event ?

Open ptitdje45 opened this issue 7 years ago • 1 comments

Hello,

can we fire a toggle only on user event, and don't call the 'on-toggle' when model is changed ?

Thanks

ptitdje45 avatar Apr 05 '17 13:04 ptitdje45

Hey there! I've made a Pull request to issue this. Check here: https://github.com/tannerlinsley/nz-toggle/pull/44

I had some trouble when using nz-toggle with md-virtual-repeater due to the watch, so I made that it calls onToggle method only when the toggle function was called as a result of user action.

pvillaverde avatar Jul 17 '18 16:07 pvillaverde