Repository: tapestry-5
Updated Branches:
  refs/heads/master a81ca0c2f -> cf101cce3


TAP5-2440: mixin autocomplete work not correct if user input is required


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/9dec1b42
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/9dec1b42
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/9dec1b42

Branch: refs/heads/master
Commit: 9dec1b429b77b15f5e8ba432bdb4520db72478a9
Parents: a81ca0c
Author: Felix Scheffer <[email protected]>
Authored: Thu Mar 19 23:45:19 2015 +0100
Committer: Jochen Kemnade <[email protected]>
Committed: Thu Apr 9 14:43:36 2015 +0200

----------------------------------------------------------------------
 .../coffeescript/META-INF/modules/t5/core/autocomplete.coffee   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/9dec1b42/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/autocomplete.coffee
----------------------------------------------------------------------
diff --git 
a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/autocomplete.coffee
 
b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/autocomplete.coffee
index 332e945..3043b70 100644
--- 
a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/autocomplete.coffee
+++ 
b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/autocomplete.coffee
@@ -40,4 +40,9 @@ define ["./dom", "./ajax", "underscore", "jquery", "./utils", 
"./typeahead"],
         minLength: spec.minChars
         dataset
 
+      # don't validate the "tt-hint" input field created by Typeahead (fix for 
TAP5-2440)
+      $field.prev(".tt-hint").removeAttr("data-validation data-optionality 
data-required-message")
+
+      return
+
     exports = init

Reply via email to