@@ -47,16 +47,14 @@ uis.directive('uiSelectChoices',
47
47
choices . attr ( 'ng-repeat' , $select . parserResult . repeatExpression ( groupByExp ) )
48
48
. attr ( 'ng-if' , '$select.open' ) ; //Prevent unnecessary watches when dropdown is closed
49
49
if ( $window . document . addEventListener ) { //crude way to exclude IE8, specifically, which also cannot capture events
50
- choices . attr ( 'ng-mouseenter' , '$select.setActiveItem(' + $select . parserResult . itemName + ')' )
51
- . attr ( 'ng-click' , '$select.select(' + $select . parserResult . itemName + ',$select.skipFocusser,$event)' ) ;
50
+ choices . attr ( 'ng-click' , '$select.select(' + $select . parserResult . itemName + ',$select.skipFocusser,$event)' ) ;
52
51
}
53
52
54
53
var rowsInner = element . querySelectorAll ( '.ui-select-choices-row-inner' ) ;
55
54
if ( rowsInner . length !== 1 ) throw uiSelectMinErr ( 'rows' , "Expected 1 .ui-select-choices-row-inner but got '{0}'." , rowsInner . length ) ;
56
55
rowsInner . attr ( 'uis-transclude-append' , '' ) ; //Adding uisTranscludeAppend directive to row element after choices element has ngRepeat
57
56
if ( ! $window . document . addEventListener ) { //crude way to target IE8, specifically, which also cannot capture events - so event bindings must be here
58
- rowsInner . attr ( 'ng-mouseenter' , '$select.setActiveItem(' + $select . parserResult . itemName + ')' )
59
- . attr ( 'ng-click' , '$select.select(' + $select . parserResult . itemName + ',$select.skipFocusser,$event)' ) ;
57
+ rowsInner . attr ( 'ng-click' , '$select.select(' + $select . parserResult . itemName + ',$select.skipFocusser,$event)' ) ;
60
58
}
61
59
62
60
$compile ( element , transcludeFn ) ( scope ) ; //Passing current transcludeFn to be able to append elements correctly from uisTranscludeAppend
0 commit comments