@royaloperahouse/chord 0.7.6 → 0.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [0.7.7]
4
+ - Tabs: close dropdown when it is clicked twice
5
+
3
6
  ## [0.7.6]
4
7
  - Add new initOpen prop to Accordion component
5
8
 
@@ -3583,8 +3583,10 @@ var Tabs = function Tabs(_ref) {
3583
3583
  };
3584
3584
 
3585
3585
  var onDropdownClick = function onDropdownClick(i, link) {
3586
- var nextActive = i === activeDropdown ? -1 : i;
3586
+ var isActiveDropdownClicked = i === activeDropdown;
3587
+ var nextActive = isActiveDropdownClicked ? -1 : i;
3587
3588
  setActiveDropdown(nextActive);
3589
+ if (isActiveDropdownClicked) setHoverOverDropdown(-1);
3588
3590
  if (onChange && link) onChange(link);
3589
3591
  };
3590
3592