Skip to content

Commit 783fdcb

Browse files
committed
support numbers in dynamic options (fix #1321)
1 parent b36a707 commit 783fdcb

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
@@ -146,7 +146,7 @@ function buildOptions (parent, options) {
146146
op = options[i]
147147
if (!op.options) {
148148
el = document.createElement('option')
149-
if (typeof op === 'string') {
149+
if (typeof op === 'string' || typeof op === 'number') {
150150
el.text = el.value = op
151151
} else {
152152
if (op.value != null && !_.isObject(op.value)) {

0 commit comments

Comments
 (0)