Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing regression with DropDownFields inside DataTable

  • Loading branch information...
commit 780ec4c5a329ee8d79b922c29004ef92641a5e97 1 parent 9871c55
Dmytry Kashcheiev authored
View
6 openFaces/source/META-INF/resources/openfaces/input/dropDownField.js
@@ -453,7 +453,7 @@ O$.DropDownField = {
_checkFieldValueAgainstList: function(allowAsynchronousFilterSetting) {
if (dropDown._customValueAllowed)
return;
- var preferredText = dropDown._field.oldValue != undefined?dropDown._field.oldValue:"";
+ var preferredText = dropDown._field._oldValue != undefined?dropDown._field._oldValue : "";
if (field.value != preferredText) {
field.value = preferredText;
if (allowAsynchronousFilterSetting)
@@ -533,7 +533,7 @@ O$.DropDownField = {
if (dropDown.value != text) {
dropDown.value = text;
- dropDown._field.oldValue = text;
+ dropDown._field._oldValue = text;
}
var newItemValue = itemValue != undefined
? (itemValue != null ? "[" + itemValue + "]" : "null")
@@ -692,7 +692,7 @@ O$.DropDownField = {
var field = dropDown._field;
var popup = dropDown._popup;
var itemPresentation = dropDown._itemPresentation;
- field._oldValue = "";
+ field._oldValue = field.value;
// Switch off browser input field autocomplete
field.setAttribute("autocomplete","off");
Please sign in to comment.
Something went wrong with that request. Please try again.