Merge pull request #613 from nabsul/fix-survey-text-submit-issue

Add missing preventDefault() call to survey-text plugin submit
This commit is contained in:
Josh de Leeuw 2019-05-24 13:17:44 -04:00 committed by GitHub
commit d1fabcb0d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,6 +116,7 @@ jsPsych.plugins['survey-text'] = (function() {
display_element.innerHTML = html;
display_element.querySelector('#jspsych-survey-text-form').addEventListener('submit', function() {
event.preventDefault();
// measure response time
var endTime = performance.now();
var response_time = endTime - startTime;