@@ -141,7 +141,7 @@ interface BFormTagsProps {
141
141
tagPills? : boolean
142
142
tagRemoveLabel? : string
143
143
tagRemovedLabel? : string
144
- tagValidator? : (t : unknown ) => boolean
144
+ tagValidator? : (t ? : string ) => boolean
145
145
tagVariant? : ColorVariant
146
146
}
147
147
@@ -170,9 +170,9 @@ const props = withDefaults(defineProps<BFormTagsProps>(), {
170
170
})
171
171
172
172
interface BFormTagsEmits {
173
- (e : ' update:modelValue' , value : Array <unknown >): void
174
- (e : ' input' , value : Array <unknown >): void
175
- (e : ' tag-state' , ... args : Array <unknown >): void
173
+ (e : ' update:modelValue' , value : Array <string >): void
174
+ (e : ' input' , value : Array <string >): void
175
+ (e : ' tag-state' , ... args : Array <Array < string > >): void
176
176
(e : ' focus' , value : FocusEvent ): void
177
177
(e : ' focusin' , value : FocusEvent ): void
178
178
(e : ' focusout' , value : FocusEvent ): void
@@ -282,7 +282,7 @@ const onInput = (e: Event | string): void => {
282
282
invalidTags .value = props .tagValidator (value ) ? [] : [value ]
283
283
duplicateTags .value = isDuplicate .value ? [value ] : []
284
284
285
- emit (' tag-state' , validTags , invalidTags , duplicateTags )
285
+ emit (' tag-state' , validTags . value , invalidTags . value , duplicateTags . value )
286
286
}
287
287
288
288
const onChange = (e : Event ): void => {
0 commit comments