Skip to content

Commit

Permalink
Fix: Reset item selection (fixes #186) (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Mar 13, 2023
1 parent a2dc6a3 commit a995569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/gmcq.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function Gmcq(props) {
name={_isRadio ? `${_id}-item` : null}
type={_isRadio ? 'radio' : 'checkbox'}
disabled={!_isEnabled}
defaultChecked={_isActive}
checked={_isActive}
aria-label={!_shouldShowMarking ?
`${a11y.normalize(text)} ${_graphic?.alt || ''}` :
`${_shouldBeSelected ? ariaLabels.correct : ariaLabels.incorrect}, ${_isActive ? ariaLabels.selectedAnswer : ariaLabels.unselectedAnswer}. ${a11y.normalize(text)} ${_graphic?.alt || ''}`}
Expand Down

0 comments on commit a995569

Please sign in to comment.