ElemeFE / ElemeFE/element

[Bug Report] Select component displayed wrong when the options is empty but the v-model has the default value

Open
#19,017 1 comment 0 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.12.0

### OS/Browsers version
macOS 10.15.3 / Chrome 80.0.3987.149

### Vue version
2.6.10

### Reproduction Link
https://codepen.io/cactusnix/pen/MWwBVEJ

### Steps to reproduce
1. I use the select component to display the default item that selected by the user.
2. The el-options has the empty options list, but the v-model has the default value.
3. I wished the select component may show nothing, but it showed the value that is bound with v-model.

### What is Expected?
I wished the select component may show nothing, but it showed the value that is bound with v-model.

### What is actually happening?
I wished the select component may show nothing, but it showed the value that is bound with v-model.

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.