@patternfly/react-table 4.43.0 → 4.44.1

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.
@@ -3000,7 +3000,7 @@
3000
3000
  return () => { };
3001
3001
  }
3002
3002
  }), [popperMatchesTriggerWidth]);
3003
- const { styles: popperStyles, attributes } = usePopper(refOrTrigger, popperElement, {
3003
+ const { styles: popperStyles, attributes, forceUpdate } = usePopper(refOrTrigger, popperElement, {
3004
3004
  placement: getPlacementMemo,
3005
3005
  modifiers: [
3006
3006
  {
@@ -3028,6 +3028,11 @@
3028
3028
  sameWidthMod
3029
3029
  ]
3030
3030
  });
3031
+ // force update when content changes
3032
+ // https://github.com/patternfly/patternfly-react/issues/5620
3033
+ React__namespace.useEffect(() => {
3034
+ forceUpdate && forceUpdate();
3035
+ }, [popper]);
3031
3036
  // Returns the CSS modifier class in order to place the Popper's arrow properly
3032
3037
  // Depends on the position of the Popper relative to the reference element
3033
3038
  const modifierFromPopperPosition = () => {
@@ -3812,13 +3817,14 @@
3812
3817
  "menu": "pf-c-menu",
3813
3818
  "modifiers": {
3814
3819
  "fullHeight": "pf-m-full-height",
3820
+ "expanded": "pf-m-expanded",
3815
3821
  "action": "pf-m-action",
3816
3822
  "disabled": "pf-m-disabled",
3817
3823
  "plain": "pf-m-plain",
3818
3824
  "splitButton": "pf-m-split-button",
3819
- "active": "pf-m-active",
3820
- "expanded": "pf-m-expanded",
3821
3825
  "primary": "pf-m-primary",
3826
+ "active": "pf-m-active",
3827
+ "secondary": "pf-m-secondary",
3822
3828
  "top": "pf-m-top",
3823
3829
  "alignRight": "pf-m-align-right",
3824
3830
  "alignLeft": "pf-m-align-left",