Author: Alex.Kolonitsky
Date: 2009-12-23 06:27:59 -0500 (Wed, 23 Dec 2009)
New Revision: 16198
Modified:
branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
ComboBox: It is not possible to select current selection again after clearing the input
field
https://jira.jboss.org/jira/browse/RF-8200
Modified:
branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
---
branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2009-12-23
05:20:44 UTC (rev 16197)
+++
branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2009-12-23
11:27:59 UTC (rev 16198)
@@ -15,7 +15,7 @@
this.comboValue = document.getElementById(id + "comboboxValue");
this.field = document.getElementById(id + "comboboxField");
this.tempItem;
-
+
this.BUTTON_WIDTH = 17; //px
this.BUTTON_LEFT_BORDER = 1; //px
this.BUTTON_RIGHT_BORDER = 1; //px
@@ -439,7 +439,10 @@
this.field.prevValue = newValue;
this.field.value = newValue;
Richfaces.invokeEvent(this.onchange, this.combobox, "onchange",
{value:newValue});
- }
+ } else if (newValue && (newValue != this.field.value)) {
+ //
https://jira.jboss.org/jira/browse/RF-8200
+ this.field.value = newValue;
+ }
},
applyDefaultText : function() {