@patternfly/react-core 5.0.0-alpha.40 → 5.0.0-alpha.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "5.0.0-alpha.40",
3
+ "version": "5.0.0-alpha.41",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -70,5 +70,5 @@
70
70
  "react": "^17 || ^18",
71
71
  "react-dom": "^17 || ^18"
72
72
  },
73
- "gitHead": "d783cc19e80a771ef14a16b9f2a3a71ce11e6225"
73
+ "gitHead": "c8a84859edab851733312c80d2f83689610d1e9b"
74
74
  }
@@ -261,10 +261,12 @@ export const DrawerPanelContent: React.FunctionComponent<DrawerPanelContentProps
261
261
  )}
262
262
  ref={panel}
263
263
  onTransitionEnd={(ev) => {
264
- if (!hidden && ev.nativeEvent.propertyName === 'transform') {
265
- onExpand();
264
+ if (ev.target as HTMLElement === panel.current) {
265
+ if (!hidden && ev.nativeEvent.propertyName === 'transform') {
266
+ onExpand();
267
+ }
268
+ setIsExpandedInternal(!hidden);
266
269
  }
267
- setIsExpandedInternal(!hidden);
268
270
  }}
269
271
  hidden={hidden}
270
272
  {...((defaultSize || minSize || maxSize) && {