Closed Bug 1425649 Opened 8 years ago Closed 7 years ago

"Show solution" button in Active learning examples should toggle displaying of the solution code while preserving user edits

Categories

(Developer Documentation Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: yk3b.bw.ggxwkimobz, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 Build ID: 20171206182557 Steps to reproduce: 1. Open a JavaScript learning page e.g.: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Arrays 2. Find first <textarea> box; a text box with "Reset" and "Show solution" buttons under it. 3. Make any edits to in the text box. 4. Click on "Show solution" button. Actual results: All data inside the box got replaced with the solution code. Now way to retrieve previous edits made inside the text box. Expected results: (Coming from comfortable w3Schools...) "Show button" should replace itself into "Hide solution", the solution code will be toggled on/shown in the text box while preserving previous user edits, and when then "Hide solution" button is pressed, the solution code will be toggled off/removed and previous user edits restored into the text box.
Nice suggestion, although I doubt we'll have the resources to do this in the short term. We may well do this when we update our live code examples.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.