@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/lib/components/select/Select.vue.d.ts +1 -1
- package/lib/index.cjs.js +1 -1
- package/lib/index.es.js +160 -160
- package/package.json +1 -1
- package/src/components/select/Select.vue +4 -6
package/package.json
CHANGED
|
@@ -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(
|
|
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(
|
|
518
|
-
event.stopPropagation();
|
|
519
|
-
event.preventDefault();
|
|
517
|
+
function removeSelected(value: string | number) {
|
|
520
518
|
if (!props.multiple) {
|
|
521
519
|
return;
|
|
522
520
|
}
|