From 9ddbfb0df8b628439fc333e691a3dbfe7fdc312f Mon Sep 17 00:00:00 2001 From: lgtst Date: Thu, 12 Jan 2023 04:22:46 +0000 Subject: [PATCH] added flowComplete callback call; --- src/visual/Survey.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/visual/Survey.js b/src/visual/Survey.js index 13047b6..b156132 100644 --- a/src/visual/Survey.js +++ b/src/visual/Survey.js @@ -1094,6 +1094,12 @@ export class Survey extends VisualStim } } + if (surveyBlock.name === "root") + { + // At this point we went through the entire survey flow tree. + this._onFlowComplete(); + } + return nodeExitCode; }