Skip to content

Commit

Permalink
remove unnecessary jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
becky-gilbert committed Apr 23, 2024
1 parent d557c48 commit 98dcaca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-survey/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class SurveyPlugin implements JsPsychPlugin<Info> {

// clear display and reset flex on jspsych-content-wrapper
display_element.innerHTML = "";
$(".jspsych-content-wrapper").css("display", "flex");
document.querySelector<HTMLElement>(".jspsych-content-wrapper").style.display = "flex";

// finish trial and save data
this.jsPsych.finishTrial({
Expand All @@ -195,7 +195,7 @@ class SurveyPlugin implements JsPsychPlugin<Info> {
});

// remove flex display from jspsych-content-wrapper to get formatting to work
$(".jspsych-content-wrapper").css("display", "block");
document.querySelector<HTMLElement>(".jspsych-content-wrapper").style.display = "block";

$(display_element).Survey({ model: this.survey });

Expand Down

0 comments on commit 98dcaca

Please sign in to comment.