Lighthouse-io / react-visjs-timeline

React component for the vis.js timeline module
MIT License
210 stars 91 forks source link

Update event handlers on component update. #54

Open udalrich opened 6 years ago

udalrich commented 6 years ago

Overview

This addresses issue https://github.com/Lighthouse-io/react-visjs-timeline/issues/53

Updates

Event handlers are set each time the component updates, not just when it is created.

I have tested it in the code base that generated the issue originally, and it fixes the issue there.

Dependencies

None

Outstanding Tasks

No unit test written, but there do not seem to be unit tests for the component.