greatCodeIdeas / md-date-range-picker

Angular Material Date Range Picker Service/Directive
MIT License
62 stars 40 forks source link

IE11 not registring all clicks on dates #21

Closed llutfiev closed 7 years ago

llutfiev commented 7 years ago

When the user opens the menu to select a date. He/she cannot click on the date itself. They will need to click on the circle around the date.

image

image

This is because the date itself is a new element. And the onclick event cant reach the event-id on the surrounding element. In chrome this works perfectly. In IE11 it (ofcourse) does not. In the code it is written like this `

`

llutfiev commented 7 years ago

Hello @ipiz I fixed this issue by copying the event-param and event-key in the md-date-range-pickercalendarselection span. Like this

<span class="md-date-range-picker__calendar__selection" event-key="date1" event-param="{{$index}}" ng-bind={{::date.getDate()}}></span>