Author: dmorozov
Date: 2008-11-26 09:31:03 -0500 (Wed, 26 Nov 2008)
New Revision: 11395
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
https://jira.jboss.org/jira/browse/RF-4866
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
---
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-11-26
14:11:57 UTC (rev 11394)
+++
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-11-26
14:31:03 UTC (rev 11395)
@@ -296,7 +296,13 @@
if (!this.comboList.activeItem) {
return;
}
- var value = this.comboList.activeItem.innerHTML.unescapeHTML();
+
+ var value = this.comboList.activeItem.innerText;
+ if(!value) {
+ value = this.comboList.activeItem.textContent.strip();
+ }
+
+ // var value = this.comboList.activeItem.innerHTML.unescapeHTML();
if (toSetOnly) {
var oV = this.field.value;
if (oV == value) {