iraptis Posted May 16, 2021 Share Posted May 16, 2021 Hello, My datepicker code is the following: jQuery( “#start-date” ).datepicker({ dateFormat: ‘dd-mm-yy’, defaultDate: new Date(), beforeShowDay: function(date){ var startDate = jQuery.datepicker.formatDate(‘yy-mm-dd’, new Date()); var currentDate = jQuery.datepicker.formatDate(‘yy-mm-dd’, date); return [ currentDate >= startDate] } }); This works with IOS but not with android. If i add the following code to fix positioning: beforeShow: function (input, inst) { var rect = input.getBoundingClientRect(); setTimeout(function () { inst.dpDiv.css({ top: rect.top -40, left: rect.left + 0 }); }, 0); } Then it works with Android but not with IOS. This code exists in a wordpress site and the problem happened when i upgraded from 5.5 to 5.7 Any ideas how to fix this problem? Link to comment Share on other sites More sharing options...
dsonesuk Posted May 16, 2021 Share Posted May 16, 2021 Shouldn't the css properties be quoted to separate from javascript 'top': rect.top -40, 'left': rect.left + 0 Link to comment Share on other sites More sharing options...
iraptis Posted May 17, 2021 Author Share Posted May 17, 2021 Hello dsonesuk, thanks for reply I added this but nothing changed the url is thishttps://demo.progresscarrental.gr/car/greece-rental-car-kia/ if u click ¨book now¨ there is a popup that contains the "Pick up time" - "Drop off time" calendars Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now