Skip to content

Commit 930c7f0

Browse files
committed
support numbers in dynamic options (fix vuejs#1321)
1 parent 6005807 commit 930c7f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/model/select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function buildOptions (parent, options) {
143143
op = options[i]
144144
if (!op.options) {
145145
el = document.createElement('option')
146-
if (typeof op === 'string') {
146+
if (typeof op === 'string' || typeof op === 'number') {
147147
el.text = el.value = op
148148
} else {
149149
if (op.value != null && !_.isObject(op.value)) {

0 commit comments

Comments
 (0)