fix a bug related to resetting the placeholder of an input element to ''
This commit is contained in:
parent
39d02953b3
commit
b0065e1ec8
1 changed files with 3 additions and 5 deletions
|
@ -789,11 +789,9 @@ Ox.Input = function(options, self) {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
if (self.options.value === '') {
|
||||
self.$input
|
||||
.removeClass('OxPlaceholder')
|
||||
.val('');
|
||||
}
|
||||
self.$input
|
||||
.removeClass('OxPlaceholder')
|
||||
.val(self.options.value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue