diff --git a/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/form/autocomplete/AutoCompleteTextField.java b/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/form/autocomplete/AutoCompleteTextField.java index f76aaa6d5f..641d264bc0 100644 --- a/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/form/autocomplete/AutoCompleteTextField.java +++ b/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/form/autocomplete/AutoCompleteTextField.java @@ -69,6 +69,10 @@ public abstract class AutoCompleteTextField extends Text private List choices; + /** + * Setting this flag to true adds some extra protection at client side + * preventing users to be able to select stale elements. + */ private boolean preventSelectWhileQueryIsRunning = false; private AutoCompleteBehavior autoCompleteBehavior;