From e8a2fb1497b26e87d340b358fd4d104089ed38a3 Mon Sep 17 00:00:00 2001 From: Rainer Hermanns Date: Sat, 14 Jun 2008 12:48:21 +0000 Subject: [PATCH] WW-2536 Autocompleted element don't publish topics when it changed o applied patch by Stanislav Malishevskiy git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@667794 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/struts2/static/dojo/src/widget/ComboBox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js index f21508775..5b97e4abb 100644 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js +++ b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js @@ -495,7 +495,8 @@ dojo.widget.defineWidget("dojo.widget.ComboBox", dojo.widget.HtmlWidget, {forceV return false; } } - this.selectedResult = [tgt.getAttribute("resultName"), tgt.getAttribute("resultValue")]; + this.textInputNode.value=""; + this.selectedResult = [tgt.getAttribute("resultName"), tgt.getAttribute("resultValue")]; this.setAllValues(tgt.getAttribute("resultName"), tgt.getAttribute("resultValue")); if (!evt.noHide) { this._hideResultList();