material icon indicating copy to clipboard operation
material copied to clipboard

datepicker - not all dates are clickable in Firefox 43 when md-max-date is set

Open richardsengers opened this issue 10 years ago • 8 comments

Weird behaviour in Firefox when only md-max-date is set For example http://codepen.io/anon/pen/LGbPdy Only the first row of dates are clickable

When resizing the window, all works fine.

richardsengers avatar Dec 28 '15 11:12 richardsengers

@richardsengers I'm not sure what issue you're trying to describe. I tried out your CodePen in Firefox and everything works as expected. md-max-date disables dates that are beyond that maximum date, so that behavior is intended. I don't see anything that changes on resize.

jelbourn avatar Jan 05 '16 23:01 jelbourn

@jelbourn thanks for the reply

not-selectable

Let me try to explain it a little bit better by submitting an image. As you can see the max date is set to the 6th of januari. Janurai 3th, 4th and 5th are not selectable / clickable, while januari 1st and 2nd are selectable/clickable

To me it's not quite clear why the dates are not selectable / clickable

ps I'm running Windows 10

richardsengers avatar Jan 06 '16 08:01 richardsengers

@richardsengers @jelbourn Hi, faced the same issue, but this one is not reproducible if md-min-date is set.

LeonVay avatar Jan 22 '16 07:01 LeonVay

Also witnessed this issue. Removed "md-max-date" and it works fine.

jeffmcardle avatar Feb 10 '16 15:02 jeffmcardle

Hi, I also have this issue in Firefox 43.1.0. There's my fiddle: http://jsfiddle.net/koljada/Lrr8drz5/4/

koljada avatar Mar 01 '16 12:03 koljada

But if you just add md-min-date the plugin will work like a charm again! https://jsfiddle.net/koljada/Lrr8drz5/6/

koljada avatar Mar 01 '16 13:03 koljada

And also if you just replace this.firstRenderableDate = this.dateUtil.incrementMonths(this.maxDate, -(this.items.length - 2)); with this.firstRenderableDate = this.dateUtil.incrementMonths(this.maxDate, -(this.items.length - 2)/2); in the code the problem will disappear.

koljada avatar Mar 01 '16 14:03 koljada

This issue is closed as part of our deprecation effort. For details, see our post Spring Cleaning 2016.

ThomasBurleson avatar Apr 28 '16 19:04 ThomasBurleson