diff --git a/src/components/scrolltop/ScrollTop.js b/src/components/scrolltop/ScrollTop.js index 3ed27b7055..a0a7b55999 100644 --- a/src/components/scrolltop/ScrollTop.js +++ b/src/components/scrolltop/ScrollTop.js @@ -97,7 +97,7 @@ export class ScrollTop extends Component { render() { const className = classNames('p-scrolltop p-link p-component', { 'p-scrolltop-sticky': this.props.target !== 'window' - }); + }, this.props.className); const iconClassName = classNames('p-scrolltop-icon', this.props.icon); const isTargetParent = this.props.target === 'parent';