chore: using includes instead of indexOf (#8261)
This commit is contained in:
@@ -73,7 +73,7 @@ export default createComponent({
|
||||
|
||||
return accordion
|
||||
? modelValue === name
|
||||
: (modelValue as Array<number | string>).indexOf(name) !== -1;
|
||||
: (modelValue as Array<number | string>).includes(name);
|
||||
};
|
||||
|
||||
linkChildren({ toggle, isExpanded });
|
||||
|
||||
Reference in New Issue
Block a user