-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Facing same issue as in old-version. While the wrapper component is updated with new props, but onElementSelected is only called once!
here is my component render method:
render() {
const {currentIndex} = this.props;
const selector = currentIndex === 1 ? "g": "path";
return (
<div className={style.iconWrapper}>
{currentIndex}
<SvgLoader path={"/persons.svg"}>
<SvgProxy selector={selector}
onElementSelected={(nodes) => {
console.log(nodes);
}}/>
</SvgLoader>
</div>
)
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels