File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
types/components/BFormTags Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2087,8 +2087,8 @@ export default defineComponent({
2087
2087
)
2088
2088
}
2089
2089
2090
- const tagValidator = (tag : string | undefined ) =>
2091
- !! tag && tag === tag .toLowerCase () && tag .length > 2 && tag .length < 6
2090
+ const tagValidator = (tag : string ) =>
2091
+ tag === tag .toLowerCase () && tag .length > 2 && tag .length < 6
2092
2092
2093
2093
function onTagState(valid : string [], invalid : string [], duplicate : string []) {
2094
2094
// console.log({
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ interface BFormTagsProps {
141
141
tagPills? : boolean
142
142
tagRemoveLabel? : string
143
143
tagRemovedLabel? : string
144
- tagValidator? : (t ? : string ) => boolean
144
+ tagValidator? : (t : string ) => boolean
145
145
tagVariant? : ColorVariant
146
146
}
147
147
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export interface Props {
30
30
tagPills ?: boolean
31
31
tagRemoveLabel ?: string
32
32
tagRemovedLabel ?: string
33
- tagValidator ?: ( t : unknown ) => boolean
33
+ tagValidator ?: ( t : string ) => boolean
34
34
tagVariant ?: ColorVariant
35
35
}
36
36
// Emits
You can’t perform that action at this time.
0 commit comments