Feature: Lock quiz after first answer and show correct option (#740) - #761
Feature: Lock quiz after first answer and show correct option (#740)#761narang24 wants to merge 1 commit into
Conversation
WalkthroughThe quiz answer selection function is rewritten to prevent multiple answer selections and provide clearer feedback. A per-question locking mechanism is implemented using stored data to block further selections after the first answer is chosen. When an incorrect answer is selected, the correct answer is automatically displayed. All answer buttons within the question are disabled after selection by removing onclick handlers and disabling pointer events via CSS. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This should be targetting every page instead of just 1. Please open an issue to make this enhancement for every page |
Fixes #740
Changes done:
Screenshots
After fix:
Preview Link(s):
(To be added after checks complete)
✅️ By submitting this PR, I have verified the following
Summary by CodeRabbit