Skip to content

Commit

Permalink
Merge branch 'main' into fix/jump-links/missing-css-comma
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers authored Sep 25, 2024
2 parents 87b4f79 + 85f1854 commit 20c01eb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions core/pfe-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @patternfly/pfe-core

## 4.0.2

### Patch Changes

- 0ec7338: `OverflowController`: prevent browser from locking up in some scenarios

## 4.0.1

### Patch Changes
Expand Down
4 changes: 3 additions & 1 deletion core/pfe-core/controllers/overflow-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export class OverflowController implements ReactiveController {
});

#ro = new ResizeObserver(() => {
this.#setOverflowState();
requestAnimationFrame(() => {
this.#setOverflowState();
});
});

showScrollButtons = false;
Expand Down
2 changes: 1 addition & 1 deletion core/pfe-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/pfe-core",
"version": "4.0.1",
"version": "4.0.2",
"license": "MIT",
"description": "PatternFly Elements Core Library",
"customElements": "custom-elements.json",
Expand Down
3 changes: 1 addition & 2 deletions elements/pf-tabs/test/pf-tabs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,10 @@ describe('<pf-tabs>', function() {
});

beforeEach(nextFrame);
beforeEach(updateComplete);
beforeEach(nextFrame);
beforeEach(nextFrame);
beforeEach(updateComplete);


it('should have visible scroll buttons if overflowed', function() {
// Note: overflow buttons are not included in the accessibility tree otherwise we'd test
// for buttons there. tabindex="-1" is used on the buttons to prevent focus and was a
Expand Down

0 comments on commit 20c01eb

Please sign in to comment.