File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
components/ExpandableSection/__tests__/__snapshots__ Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ exports[`Disclosure ExpandableSection 1`] = `
58
58
>
59
59
<button
60
60
aria-controls = " content-id"
61
+ aria-expanded = " false"
61
62
class = " pf-v5-c-expandable-section__toggle"
62
63
id = " toggle-id"
63
64
type = " button"
@@ -103,6 +104,7 @@ exports[`ExpandableSection 1`] = `
103
104
>
104
105
<button
105
106
aria-controls = " content-id"
107
+ aria-expanded = " false"
106
108
class = " pf-v5-c-expandable-section__toggle"
107
109
id = " toggle-id"
108
110
type = " button"
@@ -238,6 +240,7 @@ exports[`Renders Uncontrolled ExpandableSection 1`] = `
238
240
>
239
241
<button
240
242
aria-controls = " content-id"
243
+ aria-expanded = " false"
241
244
class = " pf-v5-c-expandable-section__toggle"
242
245
id = " toggle-id"
243
246
type = " button"
Original file line number Diff line number Diff line change 1
- import { canUseDOM , debounce } from './util' ;
1
+ import { canUseDOM } from './util' ;
2
2
3
3
/**
4
4
* This function creates a ResizeObserver used to handle resize events for the given containerRef. If ResizeObserver
@@ -83,7 +83,7 @@ export const getResizeObserver = (
83
83
if ( useRequestAnimationFrame ) {
84
84
window . requestAnimationFrame ( ( ) => {
85
85
if ( Array . isArray ( entries ) && entries . length > 0 ) {
86
- debounce ( handleResize , 100 ) ;
86
+ handleResize ( ) ;
87
87
}
88
88
} ) ;
89
89
// Avoid wrapping function in requestAnimationFrame if the function is debounced
You can’t perform that action at this time.
0 commit comments