mui.picker
util.iosHideSoftKeybordAndListenerTap = function(picker) {
if (plus.os.name == 'iOS') {
plus.key.hideSoftKeybord();
picker.cancel.addEventListener('tap', function(event) {
picker.dispose()
}, false);
picker.mask[0].addEventListener('tap', function() {
picker.dispose()
}, false);
}
}
mui.Dtpicker
util.iosHideSoftKeybordAndListenerTapDtpicker = function(Dtpicker) {
if (plus.os.name == 'iOS') {
setTimeout(function() {
document.querySelector(".mui-backdrop").addEventListener("tap", function() {
Dtpicker.dispose()
})
document.querySelector(".mui-dtpicker-header > button").addEventListener("tap", function() {
Dtpicker.dispose()
})
}, 200)
}
}