From 22210227b7b78b1a34c3c65571d1a98df7588452 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 26 Oct 2015 15:26:51 +0000 Subject: [PATCH] Consume enter keypress in search to prevent browser from triggering clicks on link button. --- etemplate/js/et2_widget_link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index d62643f143..a9e5eba9b5 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -695,7 +695,7 @@ var et2_link_entry = et2_inputWidget.extend( self.search.autocomplete("option","minLength", 0); self.search.autocomplete("search"); self.search.autocomplete("option","minLength", self.minimum_characters); - e.stopPropagation(); + return false; } });