Skip to content

Commit 2358403

Browse files
committed
fix setting input.value in IE9
1 parent d9fa2b4 commit 2358403

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/directives/public/bind.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ module.exports = {
8686

8787
handleSingle: function (attr, value) {
8888
if (inputProps[attr] && attr in this.el) {
89-
this.el[attr] = value
89+
this.el[attr] = attr === 'value'
90+
? (value || '') // IE9 will set input.value to "null" for null...
91+
: value
9092
}
9193
// set model props
9294
var modelProp = modelProps[attr]

0 commit comments

Comments
 (0)