gantt-task-react
gantt-task-react copied to clipboard
Wrong ViewMode crashing the whole web page
While setting the basic functionality, I tried sending the ViewMode value dynamically and sent wrong values to it and it made the whole website unresponsive and crashed.
Basically sending the wrong view mode is crashing the whole webpage instead of breaking or throwing an error.
I also encountered this issue. I set viewMode="year"
and the app crashes.
It's case sensitive, presumably because the documentation says it uses an enum behind the scenes.
viewMode="Year"
resolved my issue
You should be able to add an errorboundary which should stop the error from crashing the whole website
Error Boundary principals https://reactjs.org/docs/error-boundaries.html Typescript version https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/error_boundaries/