Closed StrahilKazlachev closed 8 years ago
An html <option>
element's value
attribute only accepts strings. Anything you assign to it will be cast to a string.
To store null
, undefined
, numbers, objects, etc, use model.bind
instead:
<option model.bind="someValue"></option>
I've missed that option, thanks.
I have the following
<option value.bind="someValue"></option>
. IfsomeValue
isnull
the value attribute is set to'undefined'
. Shouldn't it be'null'
, and'undefined'
whensomeValue
isundefined
?