This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit ed340ab1ab325652429031349a91fa6c8e06e8f7 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Fri Aug 4 15:31:39 2017 +0200 empécher l'alimentation auto de l'input robot par le navigateur (ref #110) --- pollen-ui-riot-js/src/main/web/tag/components/HumanInput.tag.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/components/HumanInput.tag.html b/pollen-ui-riot-js/src/main/web/tag/components/HumanInput.tag.html index 4e479a12..9e85e4f9 100644 --- a/pollen-ui-riot-js/src/main/web/tag/components/HumanInput.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/components/HumanInput.tag.html @@ -1,5 +1,6 @@ <HumanInput> <input type="text" + autocomplete="off" id="pollenInput" name="pollenInput" ref="pollenInput"/> @@ -7,11 +8,11 @@ <script type="es6"> this.check = e => { + e.preventDefault(); + e.stopPropagation(); if (this.refs.pollenInput.value.length === 0) { return this.opts.onsubmit(e); } - e.preventDefault(); - e.stopPropagation(); this.logger.warn("You are a Robot !!!"); return false; }; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.