Skip to content

Commit 8818aff

Browse files
authored
Merge pull request #9 from FaganSC/bugfix/SPecialCharFix
Encapsulated bgImage Path with single quotes
2 parents 1fe60d0 + baea053 commit 8818aff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webparts/imageSlider/components/Slide.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class Slide extends React.Component<ISlideProps, ISlideState> {
1919
public render(): React.ReactElement<ISlideProps> {
2020
const { index, activeIndex } = this.props;
2121
const inlineStyle = {
22-
backgroundImage: `url(${this.props.slide.LinkFilename})`,
22+
backgroundImage: `url('${this.props.slide.LinkFilename}')`,
2323
};
2424
return (
2525
<li

0 commit comments

Comments
 (0)