@redseed/redseed-ui-vue3 2.2.0 → 2.2.1

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": "@redseed/redseed-ui-vue3",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,7 +20,7 @@ const props = defineProps({
20
20
  },
21
21
  })
22
22
 
23
- const emit = defineEmits(['update:modelValue']) //vue3 specific v-model pattern
23
+ const emit = defineEmits(['update:modelValue', 'change']) //vue3 specific v-model pattern
24
24
 
25
25
  const formFieldSelect = ref(null)
26
26
 
@@ -42,11 +42,13 @@ function onClick() {
42
42
  }
43
43
 
44
44
  function onChange(event) {
45
+ emit('change', event)
45
46
  emit('update:modelValue', event.target.value)
46
47
  close()
47
48
  }
48
49
 
49
50
  function choose(option) {
51
+ emit('change', option.value)
50
52
  emit('update:modelValue', option.value)
51
53
  close()
52
54
  }