From 743da801aefba4f518330cff5e05d1c723383c9f Mon Sep 17 00:00:00 2001 From: Michael Marszalek Date: Wed, 13 May 2026 14:11:18 +0200 Subject: [PATCH 1/3] fix(SuggestionInput): remove unsupported props --- .../react/src/components/suggestion/suggestion-input.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react/src/components/suggestion/suggestion-input.tsx b/packages/react/src/components/suggestion/suggestion-input.tsx index fd527fb5cc..ce2b33db4a 100644 --- a/packages/react/src/components/suggestion/suggestion-input.tsx +++ b/packages/react/src/components/suggestion/suggestion-input.tsx @@ -2,7 +2,10 @@ import { forwardRef, useContext, useEffect } from 'react'; import { Input, type InputProps } from '../input/input'; import { SuggestionContext } from './suggestion'; -export type SuggestionInputProps = InputProps; +export type SuggestionInputProps = Omit< + InputProps, + 'role' | 'data-indeterminate' +>; // Make React support popovertarget attribute // https://github.com/facebook/react/issues/27479 From 4a49cd96747ef72dc1634c49997306560d0e85f0 Mon Sep 17 00:00:00 2001 From: Michael Marszalek Date: Wed, 13 May 2026 14:14:06 +0200 Subject: [PATCH 2/3] add changeset --- .changeset/quiet-birds-attend.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/quiet-birds-attend.md diff --git a/.changeset/quiet-birds-attend.md b/.changeset/quiet-birds-attend.md new file mode 100644 index 0000000000..ba0907fea3 --- /dev/null +++ b/.changeset/quiet-birds-attend.md @@ -0,0 +1,5 @@ +--- +"@digdir/designsystemet-react": minor +--- + +**SuggestionInput:** Remove unsupported props `role` and `data-indeterminate` that would break `Suggestion` From f556870b7d37c4354dbee473850eec2fa16bff5b Mon Sep 17 00:00:00 2001 From: Tobias Barsnes Date: Fri, 15 May 2026 07:44:59 +0200 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .changeset/quiet-birds-attend.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/quiet-birds-attend.md b/.changeset/quiet-birds-attend.md index ba0907fea3..05800c26a5 100644 --- a/.changeset/quiet-birds-attend.md +++ b/.changeset/quiet-birds-attend.md @@ -2,4 +2,4 @@ "@digdir/designsystemet-react": minor --- -**SuggestionInput:** Remove unsupported props `role` and `data-indeterminate` that would break `Suggestion` +**SuggestionInput:** Remove unsupported props `role` and `data-indeterminate` that would break `Suggestion`