Skip to content

Commit

Permalink
support numbers in dynamic options (fix vuejs#1321)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 17, 2015
1 parent 6005807 commit 930c7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/model/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function buildOptions (parent, options) {
op = options[i]
if (!op.options) {
el = document.createElement('option')
if (typeof op === 'string') {
if (typeof op === 'string' || typeof op === 'number') {
el.text = el.value = op
} else {
if (op.value != null && !_.isObject(op.value)) {
Expand Down

0 comments on commit 930c7f0

Please sign in to comment.