diff --git a/akvo/rsr/static/scripts-src/myrsr-admin.js b/akvo/rsr/static/scripts-src/myrsr-admin.js index 4611ff718f..83d7188496 100644 --- a/akvo/rsr/static/scripts-src/myrsr-admin.js +++ b/akvo/rsr/static/scripts-src/myrsr-admin.js @@ -1646,6 +1646,7 @@ function setValidationListeners() { function getHideCharsListener(el) { var parent = el.parentNode; var output; + var outputTimeout; output = function() { var charsLeft = parent.querySelector('.charsLeft'); @@ -1654,7 +1655,11 @@ function setValidationListeners() { } }; - return output; + outputTimeout = function() { + setTimeout(output, 250); + }; + + return outputTimeout; } // Mark mandatory fields with an asterisk diff --git a/akvo/rsr/static/scripts-src/myrsr-admin.jsx b/akvo/rsr/static/scripts-src/myrsr-admin.jsx index 3f6e71307e..e17ef2a4a5 100644 --- a/akvo/rsr/static/scripts-src/myrsr-admin.jsx +++ b/akvo/rsr/static/scripts-src/myrsr-admin.jsx @@ -1646,6 +1646,7 @@ function setValidationListeners() { function getHideCharsListener(el) { var parent = el.parentNode; var output; + var outputTimeout; output = function() { var charsLeft = parent.querySelector('.charsLeft'); @@ -1654,7 +1655,11 @@ function setValidationListeners() { } }; - return output; + outputTimeout = function() { + setTimeout(output, 250); + }; + + return outputTimeout; } // Mark mandatory fields with an asterisk