Skip to content

Commit

Permalink
reset div on id change (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo authored May 9, 2020
1 parent f3ce7b5 commit 6f96e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ const Commento = ({
return () => removeScript(SCRIPT_ID, document.body);
}, [id]);

return <div id={CONTAINER_ID} />;
return <div key={id} id={CONTAINER_ID} />;
};
export default Commento;

0 comments on commit 6f96e8f

Please sign in to comment.