mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
Carousel - Do not prevent on keydown for input and textarea
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user