-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Open
Labels
Description
Version
2.5.16
Reproduction link
https://codepen.io/jbenner/pen/geJqex
Steps to reproduce
- Instantiate a Vue instance with a
data
property namedlocations
which is an array consisting of['all', 'north', 'south', 'east', 'west']
. - Iterate over the locations in an
option
tag like so<option v-for="location in locations" :selected="location === 'all'">{{ location }}</option>
.
What is expected?
The selected
attribute to be set on the "all" option
element.
What is actually happening?
The selected
attribute is not being set.
I've also tried the following while attempting to debug but to no avail:
<option v-for="(location, index) in locations" :selected="index === 0">{{ location }}</option>
scasic, b-m-f and abhimt