Skip to content

Commit b5ab02e

Browse files
authored
fix(nav): Reverts PR #10644 that caused regression (#11099)
* fix(nav): Reverts PR #10644 that caused regression * fix failing snapshot tests
1 parent bd6b854 commit b5ab02e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/react-core/src/components/ExpandableSection/__tests__/__snapshots__/ExpandableSection.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ exports[`Disclosure ExpandableSection 1`] = `
5858
>
5959
<button
6060
aria-controls="content-id"
61+
aria-expanded="false"
6162
class="pf-v5-c-expandable-section__toggle"
6263
id="toggle-id"
6364
type="button"
@@ -103,6 +104,7 @@ exports[`ExpandableSection 1`] = `
103104
>
104105
<button
105106
aria-controls="content-id"
107+
aria-expanded="false"
106108
class="pf-v5-c-expandable-section__toggle"
107109
id="toggle-id"
108110
type="button"
@@ -238,6 +240,7 @@ exports[`Renders Uncontrolled ExpandableSection 1`] = `
238240
>
239241
<button
240242
aria-controls="content-id"
243+
aria-expanded="false"
241244
class="pf-v5-c-expandable-section__toggle"
242245
id="toggle-id"
243246
type="button"

packages/react-core/src/helpers/resizeObserver.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { canUseDOM, debounce } from './util';
1+
import { canUseDOM } from './util';
22

33
/**
44
* This function creates a ResizeObserver used to handle resize events for the given containerRef. If ResizeObserver
@@ -83,7 +83,7 @@ export const getResizeObserver = (
8383
if (useRequestAnimationFrame) {
8484
window.requestAnimationFrame(() => {
8585
if (Array.isArray(entries) && entries.length > 0) {
86-
debounce(handleResize, 100);
86+
handleResize();
8787
}
8888
});
8989
// Avoid wrapping function in requestAnimationFrame if the function is debounced

0 commit comments

Comments
 (0)