mirror of https://github.com/vuejs/vue.git
				
				
				
			only set option value when the value is present (make tests pass for #861)
This commit is contained in:
		
							parent
							
								
									8a351e7568
								
							
						
					
					
						commit
						cae336c00d
					
				|  | @ -105,8 +105,11 @@ function buildOptions (parent, options) { | |||
|       if (typeof op === 'string') { | ||||
|         el.text = el.value = op | ||||
|       } else { | ||||
|         el.text = op.text | ||||
|         el.value = op.value | ||||
|         /* jshint eqeqeq: false */ | ||||
|         if (op.value != null) { | ||||
|           el.value = op.value | ||||
|         } | ||||
|         el.text = op.text || op.value || '' | ||||
|         if (op.disabled) { | ||||
|           el.disabled = true | ||||
|         } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue