ElemeFE / ElemeFE/element

[Bug Report] select 下拉选择,单选多选切换的时候,会提示 vue.js:597 [Vue warn] 并且会提示 Error in beforeDestroy hook: "TypeError: i.indexOf is not a function"

Open
#22,030 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.9

### OS/Browsers version
window 10 / Google Chrome 103.0.5042.0(正式版本) (64 位)

### Vue version
2.5.16

### Reproduction Link
https://codepen.io/wuxinTongXue/pen/yLKoQwO

### Steps to reproduce
需求:
两个并排的下拉选择,后面的那个需要随着前面选中的数据,去请求数据
并且可能是多选,可能是单选
复现步骤
1、多次切换第一个下拉选择的选中数据(大概四五次就可以复现一次)

### What is Expected?
单选多选互相切换,不报错

### What is actually happening?
单选多选互相切换,提示 vue.js:597 [Vue warn] 并且会提示 Error in beforeDestroy hook: "TypeError: i.indexOf is not a function"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.