From 7f1b1b9805ec4b042570993fd5098344ca04d637 Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Thu, 12 Aug 2021 10:50:34 +0300 Subject: [PATCH] fix(vue): fix `focusableElements` prop type fixes #4822 --- src/swiper-vue.d.ts | 2 +- src/vue/swiper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/swiper-vue.d.ts b/src/swiper-vue.d.ts index 51717e564..eaf1290ed 100644 --- a/src/swiper-vue.d.ts +++ b/src/swiper-vue.d.ts @@ -61,7 +61,7 @@ declare const Swiper: DefineComponent< }; nested: { type: BooleanConstructor; default: undefined }; focusableElements: { - type: BooleanConstructor; + type: StringConstructor; default: undefined; }; width: { type: NumberConstructor; default: undefined }; diff --git a/src/vue/swiper.js b/src/vue/swiper.js index d828b78f8..f1714b9c8 100644 --- a/src/vue/swiper.js +++ b/src/vue/swiper.js @@ -29,7 +29,7 @@ const Swiper = { updateOnWindowResize: { type: Boolean, default: undefined }, resizeObserver: { type: Boolean, default: undefined }, nested: { type: Boolean, default: undefined }, - focusableElements: { type: Boolean, default: undefined }, + focusableElements: { type: String, default: undefined }, width: { type: Number, default: undefined }, height: { type: Number, default: undefined }, preventInteractionOnTransition: { type: Boolean, default: undefined },