feat: Update version to 1.3.1 and ensure title trimming in DynamicPollWebPart

This commit is contained in:
Torsten Brendgen
2026-08-27 00:36:38 +02:00
parent 8c8613afb8
commit 4e9b36b1cb
4 changed files with 6 additions and 4 deletions
@@ -172,7 +172,7 @@ export default class DynamicPollWebPart extends BaseClientSideWebPart<IDynamicPo
pollNavigationLabel: strings.PollNavigationLabel
};
const element: React.ReactElement<IDynamicPollCollectionProps> = React.createElement(DynamicPollCollection, {
title: this.properties.title || strings.DefaultTitle,
title: String(this.properties.title || '').trim(),
snapshots: snapshots,
displayMode: this.properties.displayMode === 'accordion' ? 'accordion' : 'slider',
showResultsBeforeVote: this.properties.showResultsBeforeVote === true,