]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
feat: ignore dropdown keyboard event on textarea 10715/head
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 31 Jan 2018 13:43:24 +0000 (14:43 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Wed, 31 Jan 2018 13:43:24 +0000 (14:43 +0100)
js/foundation.dropdown.js

index 23d9d075f23a7680ca42e0bfe94ae4a01ebbe84a..98f394aa967a4e0da9aa1175e2d2d6a7f5e87c8f 100644 (file)
@@ -178,7 +178,7 @@ class Dropdown extends Positionable {
 
       Keyboard.handleKey(e, 'Dropdown', {
         open: function() {
-          if ($target.is(_this.$anchors) && !$target.is('input')) {
+          if ($target.is(_this.$anchors) && !$target.is('input, textarea')) {
             _this.open();
             _this.$element.attr('tabindex', -1).focus();
             e.preventDefault();