diff --git a/package.json b/package.json index 30972db0..8b6198d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@statisticsnorway/ssb-component-library", - "version": "2.4.4", + "version": "2.4.5", "description": "Component library for SSB (Statistics Norway)", "main": "lib/bundle.js", "scripts": { diff --git a/src/components/ExpansionBox/ExpansionBox.tsx b/src/components/ExpansionBox/ExpansionBox.tsx index 881f3171..b85d8c1d 100644 --- a/src/components/ExpansionBox/ExpansionBox.tsx +++ b/src/components/ExpansionBox/ExpansionBox.tsx @@ -45,7 +45,7 @@ const ExpansionBox: React.FC = ({ }) } } - }, [isOpen]) + }, [isOpen, text]) return (