-
Notifications
You must be signed in to change notification settings - Fork 2
Fix for selects not working in IE8 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
angular-ui#158, based on an observed (but maybe not well understood) code change by @careywalker. Basically, just move the ng-click/ng-mouseenter bindings from the LI (choices-row) to the contained DIV (choices-row-inner). So far, I haven't seen an affect on behavior in any browser, but this is with light manual testing. All automated tests pass with these changes in place: >gulp test [15:05:36] Using gulpfile C:\web\sites\ui-select\gulpfile.js [15:05:36] Starting 'clean'... [15:05:36] Finished 'clean' after 14 ms [15:05:36] Starting 'scripts'... [15:05:36] Starting 'styles'... [15:05:36] Finished 'styles' after 61 ms [15:05:37] Finished 'scripts' after 1.01 s [15:05:37] Starting 'build'... [15:05:37] Finished 'build' after 14 μs [15:05:37] Starting 'karma'... [15:05:38] Finished 'karma' after 880 ms [15:05:38] Starting 'test'... [15:05:38] Finished 'test' after 5.63 μs INFO [karma]: Karma v0.12.31 server started at http://localhost:9876/ INFO [launcher]: Starting browser Chrome INFO [Chrome 41.0.2272 (Windows 7)]: Connected on socket gaw3nxxZW2Omee4BBX-X with id 17666700 Chrome 41.0.2272 (Windows 7): Executed 110 of 110 SUCCESS (2.483 secs / 2.465 secs)
… binding as it is." This reverts commit 9510eb1.
This reverts commit 8317a0c.
…butes on .ui-select-choices-row-inner specifically in IE8, which cannot capture those events from the parent .ui-select-choices-row. Fixes ability to select options in IE8, at least when binding the click event. Leaves functionality as-is for modern browsers.
No need for verbose conditionals
Broke things by referencing undefined document. Add dependency on $window to reference $window.document.addEventListener.
|
Chiming in to say I've been using this fix (last version) in production and it works splendidly. I hope it gets included soon, since not being able to use Bower to install this dependency is driving me crazy ;-) Does this need a test btw? |
|
It passes tests (broke briefly after an update, but I fixed). Ultimately, I On Wed, May 6, 2015 at 4:18 AM, Ronald Treur [email protected]
|
angular-ui#158, based on an observed (but maybe not well understood) code change by @careywalker. Basically, just move the ng-click/ng-mouseenter bindings from the LI (choices-row) to the contained DIV (choices-row-inner). So far, I haven't seen an affect on behavior in any browser, but this is with light manual testing.
All automated tests pass with these changes in place: