Skip to content

Commit f01bb2e

Browse files
committed
Replaced toggleText for uncontrolled
1 parent 0f9062d commit f01bb2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/module/src/SourcesCardBase/SourcesCardBase.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ const SourcesCardBase: FunctionComponent<SourcesCardBaseProps> = ({
170170
<div aria-live="off">
171171
<ExpandableSection
172172
variant={ExpandableSectionVariant.truncate}
173-
toggleText={localIsExpanded ? showLessWords : showMoreWords}
173+
toggleTextCollapsed={showLessWords}
174+
toggleTextExpanded={showMoreWords}
174175
truncateMaxLines={2}
175176
>
176177
{source.body}

0 commit comments

Comments
 (0)