react-big-scheduler icon indicating copy to clipboard operation
react-big-scheduler copied to clipboard

'undefined is not an object' when dragging task to resource view's rightmost column

Open natevarghese opened this issue 4 years ago • 1 comments

I can reproduce this bug in the sample here: https://stephenchou1017.github.io/scheduler/#/draganddrop

STEPS

  1. go to the drag and drop sample here https://stephenchou1017.github.io/scheduler/#/draganddrop
  2. Ensure Resource View selected
  3. Scroll board all the way to the right exposing the right most column "Sun 12/31"
  4. Select any task and drag it directly to any resource so you cross the right border of the board.
  5. Observer console error: TypeError: undefined is not an object (evaluating 'c.headerItems[x].start') when crossing the border

OBSERVATIONS

  • This error doesn't occur if the rightmost column is not visible. For example by having 'Sat 12/30' as the last visible column
  • This error doesn't occur by dragging the task AROUND the board's right boarder. For example, drag the task up and over views selection buttons and onto the board from the top
  • This error is also observable by exposing the rightmost column in Task View
  • Might be related to: https://github.com/react-dnd/react-dnd/issues/1187

natevarghese avatar Sep 07 '19 02:09 natevarghese

Hey unrelated to your issue, I'm having an issue with the styling did you have import Antd when you rendered the scheduler component? Here is a link to my issue if you want more detail https://github.com/StephenChou1017/react-big-scheduler/issues/161

hbellala avatar Sep 09 '19 18:09 hbellala