1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 21:39:08 +02:00

Merge pull request #19058 from Johann-S/carouselInput

Carousel - Do not prevent on keydown for input and textarea
This commit is contained in:
Mark Otto
2016-11-26 01:14:55 -08:00
committed by GitHub
2 changed files with 33 additions and 2 deletions

View File

@@ -232,11 +232,10 @@ const Carousel = (($) => {
}
_keydown(event) {
event.preventDefault()
if (/input|textarea/i.test(event.target.tagName)) {
return
}
event.preventDefault()
switch (event.which) {
case ARROW_LEFT_KEYCODE: