react-component / react-component/menu
`rc-menu` blinks on horizontal mode
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 701
- Forks
- 266
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 3
Description
Hi There,
I'm running the following code:
import React from "react";
import "./styles.css";
import Menu, { SubMenu, MenuItem, Divider } from "rc-menu";
export default function App() {
return (
<div className="App">
<Menu multiple key="1" mode="horizontal" openAnimation="zoom">
<SubMenu key="1" title="File">
<MenuItem key="1">A</MenuItem>
<MenuItem key="2">B</MenuItem>
<Divider />
<Divider />
<Divider />
</SubMenu>
<SubMenu key="2" title="Help">
<MenuItem>What</MenuItem>
</SubMenu>
</Menu>
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>
</div>
);
}
and there is a blinking behaviour when setting the menu mode to horizontal.
Is this intentional?
Sandbox link here: https://codesandbox.io/s/cranky-haslett-o84iu?file=/src/App.js
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproduction in src/App.js from the linked CodeSandbox, using Menu in horizontal mode with openAnimation="zoom". Confirm the blinking behavior and trace the horizontal-mode rendering path; done means the provided menu no longer blinks under the reported configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100