From 10c12d05b370aebec219b7a74e34c519b693c6d6 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 11 Feb 2013 12:48:34 -0500 Subject: [PATCH] iOS autocomplete bug fix - don't follow link to # --- .../javascripts/discourse/components/autocomplete.js.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/components/autocomplete.js.coffee b/app/assets/javascripts/discourse/components/autocomplete.js.coffee index bc6e3dabd96..dc13f2bc187 100644 --- a/app/assets/javascripts/discourse/components/autocomplete.js.coffee +++ b/app/assets/javascripts/discourse/components/autocomplete.js.coffee @@ -84,9 +84,11 @@ ul = div.find('ul') selectedOption = 0 markSelected() + ul.find('li').click -> selectedOption = ul.find('li').index(this) completeTerm(autocompleteOptions[selectedOption]) + false pos = null if isInput