@mozaic-ds/vue 0.32.2 → 0.32.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mozaic-ds/vue",
3
- "version": "0.32.2",
3
+ "version": "0.32.3",
4
4
  "description": "Vue.js implementation of Mozaic Design System",
5
5
  "author": "Adeo - Mozaic Design System",
6
6
  "scripts": {
@@ -6,8 +6,7 @@
6
6
  :class="[setClasses, cssFieldElementClass]"
7
7
  :value="getSelectValue"
8
8
  :disabled="disabled"
9
- @change="onChange($event.target.value)"
10
- v-on="$listeners"
9
+ v-on="inputListeners"
11
10
  >
12
11
  <option v-if="placeholder" value="" disabled="disabled">
13
12
  -- {{ placeholder }} --
@@ -102,6 +101,16 @@ export default {
102
101
 
103
102
  return classes;
104
103
  },
104
+
105
+ inputListeners: function () {
106
+ // see => https://vuejs.org/v2/guide/components-custom-events.html#Binding-Native-Events-to-Components
107
+ var vm = this;
108
+ return Object.assign({}, this.$listeners, {
109
+ change: function (event) {
110
+ vm.onChange(event.target.value);
111
+ },
112
+ });
113
+ },
105
114
  },
106
115
 
107
116
  mounted() {