mdn / mdn/fred

Demo "Reset" button bug

Open
#1,470 0 comments 0 reactions 1 assignee View on GitHub

@LeoMcA is already working on this.

Since Apr 13, 2026.

Dominant language
JavaScript
Stars
233
Forks
61
Avg merge
1d 1h
Merged PRs (30d)
82

Description

What information was incorrect, unhelpful, or incomplete?

When the user alters a line of demo code in an example, the "Reset" button is enabled. If the user clicks to reset their changes, the button continues to be active despite a lack of difference between the line's current text and the line's original text.

What did you expect to see?

It would be more precise to disable the button again until any changes are made once more to the demo code. It may be the case that the button disables itself briefly, but then re-enables itself immediately after, perhaps indicative of a logical error (though this may be my visual misinterpretation).

Do you have any supporting links, references, or citations?

See the "Reset" button in any "Try it" demo. Here is one example:
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/animation-direction#try_it

Do you have anything more you want to share?

Note that this does not occur in the playground.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.