make input fire a clear event
This commit is contained in:
parent
160c93aa83
commit
be44815ce4
1 changed files with 1 additions and 0 deletions
|
@ -634,6 +634,7 @@ Ox.Input = function(options, self) {
|
|||
function clear() {
|
||||
// fixme: set to min, not zero
|
||||
// fixme: make this work for password
|
||||
that.triggerEvent('clear');
|
||||
self.options.value = '';
|
||||
if (self.options.type == 'float') {
|
||||
self.options.value = '0.0';
|
||||
|
|
Loading…
Reference in a new issue