Skip to content

Commit 2950cea

Browse files
tmorehousepi0
authored andcommitted
[collapse] render ID on root div (bootstrap-vue#410)
* [collapse] render ID on root div * [dropdown.js] remove duplicate method
1 parent 10025e5 commit 2950cea

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

lib/components/collapse.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@after-leave="clearHeight"
77
name="collapse"
88
>
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'">
1010
<slot></slot>
1111
</div>
1212
</transition>

lib/mixins/dropdown.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -164,21 +164,6 @@ export default {
164164
}
165165
});
166166
},
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-
},
182167
getItems() {
183168
return Array.prototype.slice.call(this.$refs.menu.querySelectorAll(ITEM_SELECTOR));
184169
}

0 commit comments

Comments
 (0)