Skip to content

[Quiz Builder] Option label htmlFor value does not match input id #7

@joelbyrd

Description

@joelbyrd

In order to connect it's corresponding input, it needs to have an htmlFor with a value equal to the id of the input. However, in "solutions/quiz-builder.jsx", the value of the label htmlFor is {option} (which would be the text of the option (e.g. "Paris", "London", etc.), but the input has an id of {option${index}} (e.g. "option1", "option2", etc.). So they don't match and therefore clicking the label does not actually select the option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions