From: Nicolas Coden Date: Wed, 31 Jan 2018 13:43:24 +0000 (+0100) Subject: feat: ignore dropdown keyboard event on textarea X-Git-Tag: v6.6.0~3^2~301^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10715%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git feat: ignore dropdown keyboard event on textarea --- diff --git a/js/foundation.dropdown.js b/js/foundation.dropdown.js index 23d9d075f..98f394aa9 100644 --- a/js/foundation.dropdown.js +++ b/js/foundation.dropdown.js @@ -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();