From 3aa3328ffd4f5cb2e3530472297d71b0807622fe Mon Sep 17 00:00:00 2001 From: Dominic Carrington Date: Fri, 6 Jul 2018 17:38:55 +0100 Subject: [PATCH] [bootstrap] False is valid for interval option in carousel (#27078) * [bootstrap] False is valid for interval in carousel * [bootstrap] Keep consistant spacing --- types/bootstrap/bootstrap-tests.ts | 4 ++++ types/bootstrap/index.d.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/types/bootstrap/bootstrap-tests.ts b/types/bootstrap/bootstrap-tests.ts index f0a353889c..f0bbbea7f2 100755 --- a/types/bootstrap/bootstrap-tests.ts +++ b/types/bootstrap/bootstrap-tests.ts @@ -56,6 +56,10 @@ $("#carousel").carousel({ pause: false, }); +$("#carousel").carousel({ + interval: false, +}); + // -------------------------------------------------------------------------------------- // Collapse // -------------------------------------------------------------------------------------- diff --git a/types/bootstrap/index.d.ts b/types/bootstrap/index.d.ts index bba7b71c59..8a815bccd5 100755 --- a/types/bootstrap/index.d.ts +++ b/types/bootstrap/index.d.ts @@ -46,7 +46,7 @@ export interface CarouselOption { * * @default 5000 */ - interval?: number; + interval?: false | number; /** * Whether the carousel should react to keyboard events.