Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2474 from teamleadercrm/fix/looping-menu-item
Browse files Browse the repository at this point in the history
[FIX] Looping of menu item
  • Loading branch information
stefaandevylder authored Dec 6, 2022
2 parents 3a937c4 + a65e1e1 commit cea22e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@

### Dependency updates

## [18.1.0] - 2022-12-05
## [18.1.1] - 2022-12-06

### Fixed

- `Menu`: Fix possibility to have an infinite loop ([@stefaandevylder](http://github.com/stefaandevylder)) in [#2474](https://github.com/teamleadercrm/ui/pull/2474)

## [18.1.0] - 2022-12-0

### Added

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@teamleader/ui",
"description": "Teamleader UI library",
"version": "18.1.0",
"version": "18.1.1",
"author": "Teamleader <[email protected]>",
"bugs": {
"url": "https://github.com/teamleadercrm/ui/issues"
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const Menu: GenericComponent<MenuProps> = ({

setStateWidth(width);
setStateHeight(height);
}, [menuNode.current?.getBoundingClientRect()]);
}, []);

useEffect(() => {
active ? show() : hide();
Expand Down

0 comments on commit cea22e4

Please sign in to comment.