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

⬇️ Revert back Menu #2481

Merged
merged 2 commits into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@

### Dependency updates

## [18.1.2] - 2022-12-07

### Fixed

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

## [18.1.1] - 2022-12-06

### Fixed
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.1",
"version": "18.1.2",
"author": "Teamleader <development@teamleader.eu>",
"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