Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joelbyrd opened this issue Oct 21, 2024 · 0 comments
Open

Comments

@joelbyrd
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant