Skip to content

Commit 7edf390

Browse files
committed
Fix: Revert showFooter check in set up modifier
1 parent 4a0cbec commit 7edf390

File tree

1 file changed

+1
-3
lines changed
  • packages/components/src/components/hds/code-block

1 file changed

+1
-3
lines changed

packages/components/src/components/hds/code-block/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ export default class HdsCodeBlock extends Component<HdsCodeBlockSignature> {
100100
});
101101

102102
private _setUpCodeBlockCode = modifier((element: HTMLElement) => {
103-
if (this.showFooter) {
104-
this._isExpanded = false; // reset expanded state on updates
105-
}
103+
this._isExpanded = false; // reset expanded state on updates
106104
this.setPrismCode(element);
107105
return () => {};
108106
});

0 commit comments

Comments
 (0)