From 2d736a1de17c5e73992ef75678cbdb8fb9551dcd Mon Sep 17 00:00:00 2001 From: Marius Olbertz Date: Tue, 10 Oct 2017 18:20:11 +0200 Subject: [PATCH] Prevent SPACE from setting focus to the Dropdown if anchor is an input element. --- js/foundation.dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.dropdown.js b/js/foundation.dropdown.js index f1da4c541..23d9d075f 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)) { + if ($target.is(_this.$anchors) && !$target.is('input')) { _this.open(); _this.$element.attr('tabindex', -1).focus(); e.preventDefault(); -- 2.47.2