Skip to content

Commit

Permalink
Props no longer extend from AllHTMLAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
stefcameron committed Dec 12, 2024
1 parent 274d0b7 commit 120f289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .changeset/brown-buttons-do.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'focus-trap-react': patch
---

Fix missing default export in typings; deprecate default export; add named export in code ([#1396](https://github.com/focus-trap/focus-trap-react/issues/1396))
Fix missing default export in typings; props no longer extend `React.AllHTMLAttributes<any>` to allow things like `className` (those extra props have always been ignored anyway); deprecate default export; add named export in code ([#1396](https://github.com/focus-trap/focus-trap-react/issues/1396))
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Options as FocusTrapOptions } from 'focus-trap';
import * as React from 'react';

export interface FocusTrapProps extends React.AllHTMLAttributes<any> {
export interface FocusTrapProps {
/**
* __Single container child__ for the trap. Use `containerElements` instead
* if you need a trap with multiple containers.
Expand Down

0 comments on commit 120f289

Please sign in to comment.