Fix click target.
authorAlexandre Segura <mex.zktk@gmail.com>
Tue, 14 Mar 2017 12:54:51 +0100
changeset 422 0f59a0f98021
parent 421 6949fe7a69b6
child 423 729e51dd282e
Fix click target.
src_js/iconolab-bundle/src/components/tagform/ColorButtons.vue
--- a/src_js/iconolab-bundle/src/components/tagform/ColorButtons.vue	Tue Mar 14 12:50:50 2017 +0100
+++ b/src_js/iconolab-bundle/src/components/tagform/ColorButtons.vue	Tue Mar 14 12:54:51 2017 +0100
@@ -104,7 +104,7 @@
             },
 
             onClick: function(e) {
-                var value = parseInt($(e.target).data('value'));
+                var value = parseInt($(e.currentTarget).data('value'));
                 this.value = value;
                 this.$emit('change', { value: value });
             }