我在我的Ionic应用程序中使用Angular日期范围选择器。我现在面临的问题是,在浏览器中的移动视图中,甚至在移动设备上,“接下来的”问题是和之前的'按钮不起作用。
请帮帮我,感觉真的很无奈。提前谢谢。
`$scope.datePicker = {date: {startDate: null, endDate: null}};
$('#customeDateRange').daterangepicker({
"opens": "left",
"linkedCalendars": false
},
function(startDate, endDate, label) {
console.log(startDate, endDate)
console.log(moment(startDate).format('YYYY-MM-DD'))
$scope.StartDate = moment(startDate).format('YYYY-MM-DD');
$scope.EndDate = moment(endDate).format('YYYY-MM-DD');
getInsuranceWiseClaimCount();
});`
答案 0 :(得分:0)
更改Ionic的daterangepicker.js文件 添加一条线进行触摸处理
对于上一页按钮
.on('click.daterangepicker', '.prev', $.proxy(this.clickPrev, this))
.on('touchstart.daterangepicker', '.prev', $.proxy(this.clickPrev, this))
For Next
.on('click.daterangepicker', '.next', $.proxy(this.clickPrev, this))
.on('touchstart.daterangepicker', '.next', $.proxy(this.clickPrev, this))