changeset 1133:18327fc36781

Partially reverting RT-21406 as it has the side-effect of updating the value of the ComboBox as the user typed, which was not intended.
author jgiles
date Thu, 24 May 2012 09:22:11 +1200
parents e8b7fef315c2
children c7a141a73c4c
files javafx-ui-controls/src/javafx/scene/control/ComboBox.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/javafx/scene/control/ComboBox.java	Thu May 24 09:17:50 2012 +1200
+++ b/javafx-ui-controls/src/javafx/scene/control/ComboBox.java	Thu May 24 09:22:11 2012 +1200
@@ -412,11 +412,11 @@
     private void updateBindings() {
         // remove bindings if any exist
         textField.promptTextProperty().unbindBidirectional(promptTextProperty());
-        textField.textProperty().unbindBidirectional(valueProperty());
+//        textField.textProperty().unbindBidirectional(valueProperty());
         
         // update bindings with new converter
         textField.promptTextProperty().bindBidirectional(promptTextProperty());
-        textField.textProperty().bindBidirectional(valueProperty(), getConverter());
+//        textField.textProperty().bindBidirectional(valueProperty(), getConverter());
     }
     
     /***************************************************************************