-
Notifications
You must be signed in to change notification settings - Fork 6.7k
bug in ie when using datepicker with popup button and change focus #4411
Comments
For the curious, the offending line is https://github.com/angular-ui/bootstrap/blob/master/src/datepicker/datepicker.js#L716 - this is supposedly an issue with IE not having a |
I fixed it by replacing https://github.com/angular-ui/bootstrap/blob/master/src/datepicker/datepicker.js#L716 with
|
@smilix Yep, I see the same issue in IE10 and IE11. I'd like to know the reason why #4316 even added the Without really understanding why we are doing
|
That sounds reasonable to me. If you open a PR, we can get that merged quickly. |
I fixed it like this: Dev version: Min version All we're doing is adding a null-safe check, so this shouldn't break any code that previously relied on the contains function. This also works on IE because it doesn't throw an exception if contains is not defined. |
Closes angular-ui#4423 Fixes angular-ui#4411 # Conflicts: # src/datepicker/datepicker.js Cherry picked commit from original repository: angular-ui@868c0e2?diff=split
Hello. May I know what version of angular bootstrap is this fix included? |
@chrisarcano If you look above where the issue was closed by commit 868c0e2, clicking on that link will take you to the commit detail page which lists the release the commit was part of: 1.1.0. |
I installed v1.3.2 using bower ( bower install angular-bootstrap ). I supposed the fix is included in that version, but upon checking and testing with an app, the fix is not present. Please advise. |
Using a datepicker with popup generates an error in Internet explorer 11.
It can be found in the demo site: https://angular-ui.github.io/bootstrap/#/datepicker and use the popup demo.
When using the datepicker (under the title Popup) clicking on the calendar button the calendar opens. If you click outside the datepicker area (to close the datepicker) you get the error : Object doesn't support property or method 'contains'. This is only internet explorer. I'm using ie 11.
The text was updated successfully, but these errors were encountered: