Merge pull request #315 from daniel-giralt-len/master

#314 Fix Predictions are calculated twice when radios are toggled
master
Mike Bryant 5 years ago committed by GitHub
commit c53f4410b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -55,7 +55,9 @@ i18next
$(document).ready(initialize);
let delayTimer;
$(document).on('input', function() {
$(document).on('input', function(event) {
//prevent radio input from updating content twice per input change
if(event.target.type === 'radio'){ return }
// adding short delay after input to help mitigate potential lag after keystrokes
clearTimeout(delayTimer);
delayTimer = setTimeout(function() {

Loading…
Cancel
Save