Skip to content

Commit 991c0fe

Browse files
committed
chore: adapt SvgRenderer id to work in CSS
1 parent 7b15f4d commit 991c0fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/SvgRenderer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export default function SvgRenderer(props) {
3131
...otherProps
3232
} = props;
3333

34-
const internalId = `react-ocl:${useId()}`;
34+
const reactId = useId().replace(/:/g, '-');
35+
const internalId = `react-ocl${reactId}`;
3536
const ref = useRef(null);
3637

3738
const id = idFromProps || internalId;

0 commit comments

Comments
 (0)