pull/6273/head
tugcekucukoglu 2024-08-22 11:55:35 +03:00
parent 42fe404816
commit 90132fc104
1 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ export default {
this.$emit('item-mousemove', { originalEvent: event, processedItem }); this.$emit('item-mousemove', { originalEvent: event, processedItem });
}, },
getAriaPosInset(index) { getAriaPosInset(index) {
return index - this.ariaPosInsetCompute.slice(0, index).length + 1; return index - this.calculateAriaSetSize.slice(0, index).length + 1;
}, },
getMenuItemProps(processedItem, index) { getMenuItemProps(processedItem, index) {
return { return {
@ -212,7 +212,7 @@ export default {
} }
}, },
computed: { computed: {
ariaPosInsetCompute() { calculateAriaSetSize() {
return this.items.filter((processedItem) => this.isItemVisible(processedItem) && this.getItemProp(processedItem, 'separator')); return this.items.filter((processedItem) => this.isItemVisible(processedItem) && this.getItemProp(processedItem, 'separator'));
}, },
getAriaSetSize() { getAriaSetSize() {