reactjs / reactjs/react.dev

[Bug]: Clicking "Show details" is unresponsive, but instead clicking anywhere else toggles the accordion

Open
#7,753 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug: unconfirmed
Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

Summary

When I click "Show details" button of 2 "Deep Dive" accordions, nothing happens, but instead, clicking anywhere else, will toggle the accordion.

Page

https://react.dev/reference/react/useMemo#usage

Details

Deep Dive
How to tell if a calculation is expensive?

Deep Dive
Should you add useMemo everywhere?

Ubuntu, Chrome 135.0
The bug is not present on Firefox.
I have tried refreshing the page but the issue persists.

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.

Research direction

Start at the React useMemo reference page linked in the issue and reproduce the two Deep Dive accordion interactions in Chrome on Ubuntu, then compare with Firefox where the bug does not occur. Investigate the page's Show details behavior and verify that the button responds directly while clicking elsewhere does not unexpectedly toggle the accordion.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.