Fixed #4908 - For Carousel
parent
5b72a7732f
commit
d8143f212e
|
@ -101,7 +101,7 @@ import ChevronLeftIcon from 'primevue/icons/chevronleft';
|
||||||
import ChevronRightIcon from 'primevue/icons/chevronright';
|
import ChevronRightIcon from 'primevue/icons/chevronright';
|
||||||
import ChevronUpIcon from 'primevue/icons/chevronup';
|
import ChevronUpIcon from 'primevue/icons/chevronup';
|
||||||
import Ripple from 'primevue/ripple';
|
import Ripple from 'primevue/ripple';
|
||||||
import { DomHandler, UniqueComponentId, ObjectUtils } from 'primevue/utils';
|
import { DomHandler, ObjectUtils, UniqueComponentId } from 'primevue/utils';
|
||||||
import BaseCarousel from './BaseCarousel.vue';
|
import BaseCarousel from './BaseCarousel.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -453,6 +453,8 @@ export default {
|
||||||
|
|
||||||
case 'ArrowUp':
|
case 'ArrowUp':
|
||||||
case 'ArrowDown':
|
case 'ArrowDown':
|
||||||
|
case 'PageUp':
|
||||||
|
case 'PageDown':
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -481,7 +483,7 @@ export default {
|
||||||
this.changedFocusedIndicator(activeIndex, 0);
|
this.changedFocusedIndicator(activeIndex, 0);
|
||||||
},
|
},
|
||||||
onEndKey() {
|
onEndKey() {
|
||||||
const indicators = [...DomHandler.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]r')];
|
const indicators = [...DomHandler.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]')];
|
||||||
const activeIndex = this.findFocusedIndicatorIndex();
|
const activeIndex = this.findFocusedIndicatorIndex();
|
||||||
|
|
||||||
this.changedFocusedIndicator(activeIndex, indicators.length - 1);
|
this.changedFocusedIndicator(activeIndex, indicators.length - 1);
|
||||||
|
|
Loading…
Reference in New Issue