From 3393191193000082bb4a4b4fa466979e11107eb3 Mon Sep 17 00:00:00 2001 From: lubber-de Date: Thu, 15 Nov 2018 21:48:16 +0100 Subject: [PATCH] fix(dropdown): stop event on enterkey and multiple allowadditions to prevent form submission --- src/definitions/modules/dropdown.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 88c9420b89..2f7200ca4e 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -1439,6 +1439,9 @@ $.fn.dropdown = function(parameters) { if(module.is.searchSelection()) { module.remove.searchTerm(); } + if(module.is.multiple()){ + event.preventDefault(); + } } // visible menu keyboard shortcuts