Skip to content

Commit

Permalink
Bug 1251017 - Having added consecutive restrictions on fields with "j…
Browse files Browse the repository at this point in the history
…ava.util.Date" type in Guided Rule causes the browser to hang when choosing "Literal value"

(cherry picked from commit e11a136)
  • Loading branch information
Rikkola committed Aug 17, 2015
1 parent 489ea9e commit 0b6efe8
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -358,8 +358,14 @@ public void onValueChange( final ValueChangeEvent<String> event ) {
dp.addValueChangeHandler( new ValueChangeHandler<Date>() {

public void onValueChange( final ValueChangeEvent<Date> event ) {
constraint.setValue( PopupDatePicker.convertToString( event ) );
executeOnValueChangeCommand();
String value = PopupDatePicker.convertToString( event );
boolean update = constraint.getValue() == null || !constraint.getValue().equals( value );

constraint.setValue( value );

if ( update ) {
executeOnValueChangeCommand();
}
}

} );
Expand Down

0 comments on commit 0b6efe8

Please sign in to comment.