1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-10 07:37:27 +02:00

Carousel - Do not prevent on keydown for input and textarea

This commit is contained in:
Johann-S
2016-02-01 00:06:07 +01:00
parent 6384789f95
commit 14ec4fdfc1
2 changed files with 33 additions and 2 deletions

View File

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