@teammodlr/ui-kit 2.1.28 → 2.1.30

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": "@teammodlr/ui-kit",
3
- "version": "2.1.28",
3
+ "version": "2.1.30",
4
4
  "description": "",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.es.js",
@@ -15,8 +15,8 @@
15
15
  :aria-disabled="disabled ? 'true' : 'false'"
16
16
  :aria-labelledby="`${id}-label`"
17
17
  tabindex="0"
18
- @focusin="focusSelect"
19
- @click="onSelectClick">
18
+ @focusin.stop="focusSelect"
19
+ @click.stop="onSelectClick">
20
20
  <div :class="selectComputedClasses">
21
21
  <template
22
22
  v-if="
@@ -28,7 +28,7 @@
28
28
  v-for="value in selectedMax"
29
29
  :key="value"
30
30
  :closeable="true"
31
- @close="removeSelected($event, value)"
31
+ @close="removeSelected(value)"
32
32
  :size="size">
33
33
  {{ getSelectedLabel(value) }}
34
34
  </MTag>
@@ -514,9 +514,7 @@ export default defineComponent({
514
514
  }
515
515
  }
516
516
 
517
- function removeSelected(event: MouseEvent, value: string | number) {
518
- event.stopPropagation();
519
- event.preventDefault();
517
+ function removeSelected(value: string | number) {
520
518
  if (!props.multiple) {
521
519
  return;
522
520
  }