Skip to content

Commit

Permalink
Add changelogs for internal refactorings using inert (#45269)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Oct 26, 2022
1 parent dd99ea3 commit 0eac2da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- `TabPanel`: updated to satisfy `react/exhaustive-deps` eslint rule ([#44935](https://github.com/WordPress/gutenberg/pull/44935))
- `ColorPalette`: Convert to TypeScript ([#44632](https://github.com/WordPress/gutenberg/pull/44632)).
- `UnitControl`: Add tests ([#45260](https://github.com/WordPress/gutenberg/pull/45260)).
- `Disabled`: Refactor the component to rely on the HTML `inert` attribute.

## 21.3.0 (2022-10-19)

Expand Down
5 changes: 0 additions & 5 deletions packages/components/src/disabled/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ describe( 'Disabled', () => {
</Disabled>
);

// @ts-ignore
expect( container.firstChild ).toHaveAttribute( 'inert' );
} );

Expand All @@ -40,12 +39,10 @@ describe( 'Disabled', () => {

const { container, rerender } = render( <MaybeDisable /> );

// @ts-ignore
expect( container.firstChild ).toHaveAttribute( 'inert' );

rerender( <MaybeDisable isDisabled={ false } /> );

// @ts-ignore
expect( container.firstChild ).not.toHaveAttribute( 'inert' );
} );

Expand All @@ -58,12 +55,10 @@ describe( 'Disabled', () => {

const { rerender, container } = render( <MaybeDisable /> );

// @ts-ignore
expect( container.firstChild ).toHaveAttribute( 'inert' );

rerender( <MaybeDisable isDisabled={ false } /> );

// @ts-ignore
expect( container.firstChild ).not.toHaveAttribute( 'inert' );
} );

Expand Down
4 changes: 4 additions & 0 deletions packages/compose/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Internal

- `useDisabled`: Refactor the component to rely on the HTML `inert` attribute.

## 5.18.0 (2022-10-19)

## 5.17.0 (2022-10-05)
Expand Down

0 comments on commit 0eac2da

Please sign in to comment.