Skip to content

Commit

Permalink
use labelContent for RectangularRadioButton voicing object response t…
Browse files Browse the repository at this point in the history
…oo on focus, #699
  • Loading branch information
zepumph committed May 3, 2021
1 parent 947fca3 commit 1b9f94a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/buttons/RectangularRadioButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ class RectangularRadioButtonGroup extends LayoutBox {
// pdom create the label for the radio button
if ( item.labelContent ) {
radioButtonGroupMemberOptions.labelContent = item.labelContent;

// On focus, use this for the voicing object response too
radioButtonGroupMemberOptions.voicingCreateObjectResponse = event => event.type === 'focus' ? item.labelContent : null;
}

// pdom create description for radio button
Expand Down

0 comments on commit 1b9f94a

Please sign in to comment.