From 120f289bb613ff3f1880352280ac7768ffaefd36 Mon Sep 17 00:00:00 2001 From: Stefan Cameron Date: Thu, 12 Dec 2024 10:00:15 -0600 Subject: [PATCH] Props no longer extend from AllHTMLAttributes --- .changeset/brown-buttons-do.md | 2 +- index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/brown-buttons-do.md b/.changeset/brown-buttons-do.md index 5f2a8ed7..6967d36b 100644 --- a/.changeset/brown-buttons-do.md +++ b/.changeset/brown-buttons-do.md @@ -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` 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)) diff --git a/index.d.ts b/index.d.ts index 361f79ac..81e09d5b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,7 @@ import { Options as FocusTrapOptions } from 'focus-trap'; import * as React from 'react'; -export interface FocusTrapProps extends React.AllHTMLAttributes { +export interface FocusTrapProps { /** * __Single container child__ for the trap. Use `containerElements` instead * if you need a trap with multiple containers.