File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
addon/components/es-navbar/link Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ export default Component.extend({
31
31
// move focus to the first item in the dropdown
32
32
this . processFirstElementFocus ( ) ;
33
33
this . processKeyPress ( ) ;
34
-
35
-
36
34
} ) ;
37
35
}
38
36
}
@@ -49,7 +47,7 @@ export default Component.extend({
49
47
this . processFirstElementFocus ( ) ;
50
48
} ,
51
49
52
- processBlur ( ) { //TODO is this working?
50
+ processBlur ( ) {
53
51
next ( this , function ( ) {
54
52
let subItems = Array . from ( this . element . querySelectorAll ( '.navbar-dropdown-list li' ) ) ;
55
53
let focused = subItems . find ( item => document . activeElement === item . querySelector ( 'a' ) ) ;
@@ -62,7 +60,7 @@ export default Component.extend({
62
60
} ,
63
61
64
62
processClick ( ) {
65
-
63
+ // TODO handle mouseclick outside the current dropdown
66
64
} ,
67
65
68
66
processFirstElementFocus ( ) {
@@ -103,6 +101,6 @@ export default Component.extend({
103
101
104
102
willDestroyElement ( ) {
105
103
document . removeEventListener ( 'keydown' , this . triggerDropdown ) ;
106
- document . removeEventListener ( 'click' , this . triggerDropdown ) ;
104
+ // document.removeEventListener('click', this.triggerDropdown);
107
105
}
108
106
} ) ;
Original file line number Diff line number Diff line change 9
9
{{ #if (eq link.type " dropdown" )}}
10
10
<button
11
11
onclick ={{ action " toggleDropdown" }}
12
- class =" navbar-list-item-dropdown-toggle"
12
+ class =" navbar-list-item-dropdown-toggle {{ if isDropdownOpen " active " }} "
13
13
aria-expanded ={{ isExpanded }}
14
14
>
15
15
{{ link.name }}
You can’t perform that action at this time.
0 commit comments