CP: bug in SSC

Description

Reported here: https://h5p.org/node/106449. The attached H5P demonstrates it.

In CP, when clicking retry in summary slide, the following is seen on h5p.org:

Uncaught TypeError: Cannot read property '$element' of undefined
at SingleChoiceSet.Question.self.focusButton (js_WqDiCEa_e0e_exzlQ_yK1wkE9PtOSdWOMCSlaOLIbxU.js:2720)
at SolutionView.<anonymous> (js_WqDiCEa_e0e_exzlQ_yK1wkE9PtOSdWOMCSlaOLIbxU.js:4100)
at SolutionView.call (h5p-event-dispatcher.js?ouig4h:209)
at SolutionView.EventDispatcher.trigger (h5p-event-dispatcher.js?ouig4h:240)
at SolutionView.H5P.SingleChoiceSet.SolutionView.SolutionView.hide (js_WqDiCEa_e0e_exzlQ_yK1wkE9PtOSdWOMCSlaOLIbxU.js:3590)
at SingleChoiceSet.H5P.SingleChoiceSet.SingleChoiceSet.resetTask (js_WqDiCEa_e0e_exzlQ_yK1wkE9PtOSdWOMCSlaOLIbxU.js:4763)
at H5P.CoursePresentation.resetTask (js_WqDiCEa_e0e_exzlQ_yK1wkE9PtOSdWOMCSlaOLIbxU.js:7262)
at HTMLButtonElement.click (js_WqDiCEa_e0e_exzlQ_yK1wkE9PtOSdWOMCSlaOLIbxU.js:7610)

buttons is not defined:

Acceptance Criteria

No JS error seen
Update https://h5p.org/node/106449

Status

Assignee

Pål Jørgensen

Reporter

Pål Jørgensen

Labels

None

Funding

None

Code reviewer

Thomas Marstrander

Released

Released

Fix versions

Priority

Highest