File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change 6
6
@after-leave =" clearHeight"
7
7
name =" collapse"
8
8
>
9
- <div :class =" classObject" v-show =" show" :aria-expanded =" show ? 'true' : 'false'" >
9
+ <div :id = " id || null " : class =" classObject" v-show =" show" :aria-expanded =" show ? 'true' : 'false'" >
10
10
<slot ></slot >
11
11
</div >
12
12
</transition >
Original file line number Diff line number Diff line change @@ -164,21 +164,6 @@ export default {
164
164
}
165
165
} ) ;
166
166
} ,
167
- focusHovered ( e ) {
168
- if ( ! this . visible ) {
169
- return ;
170
- }
171
- const items = this . getItems ( ) ;
172
- if ( items . length < 1 ) {
173
- return ;
174
- }
175
- const index = items . indexOf ( e . target ) ;
176
- if ( index > - 1 ) {
177
- e . preventDefault ( ) ;
178
- e . stopPropagation ( ) ;
179
- items [ index ] . focus ( ) ;
180
- }
181
- } ,
182
167
getItems ( ) {
183
168
return Array . prototype . slice . call ( this . $refs . menu . querySelectorAll ( ITEM_SELECTOR ) ) ;
184
169
}
You can’t perform that action at this time.
0 commit comments