Commit 7d9a220f authored by hbcui1984's avatar hbcui1984

修复数字输入框,触发顶层容器的change事件

parent d7cadb5a
...@@ -7029,6 +7029,11 @@ Function.prototype.bind = Function.prototype.bind || function(to) { ...@@ -7029,6 +7029,11 @@ Function.prototype.bind = Function.prototype.bind || function(to) {
}); });
self.input.addEventListener(changeEventName, function(event) { self.input.addEventListener(changeEventName, function(event) {
self.checkValue(); self.checkValue();
var val = parseInt(self.input.value);
//触发顶层容器
$.trigger(self.holder, changeEventName, {
value: val
});
}); });
}, },
/** /**
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -7029,6 +7029,11 @@ Function.prototype.bind = Function.prototype.bind || function(to) { ...@@ -7029,6 +7029,11 @@ Function.prototype.bind = Function.prototype.bind || function(to) {
}); });
self.input.addEventListener(changeEventName, function(event) { self.input.addEventListener(changeEventName, function(event) {
self.checkValue(); self.checkValue();
var val = parseInt(self.input.value);
//触发顶层容器
$.trigger(self.holder, changeEventName, {
value: val
});
}); });
}, },
/** /**
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -51,6 +51,11 @@ ...@@ -51,6 +51,11 @@
}); });
self.input.addEventListener(changeEventName, function(event) { self.input.addEventListener(changeEventName, function(event) {
self.checkValue(); self.checkValue();
var val = parseInt(self.input.value);
//触发顶层容器
$.trigger(self.holder, changeEventName, {
value: val
});
}); });
}, },
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment