kendoDropTarget error: Cannot read property 'length' of undefined

4 posts, 0 answers
  1. Boris Gheihman
    Boris Gheihman avatar
    12 posts
    Member since:
    May 2007

    Posted 06 Jan 2015 Link to this post

    I've found a bug in DropTarget widget, here is an example of this behaviour: http://dojo.telerik.com/eGAFO/2 (check console)

    To reproduce this bug you need to create both dropTarget and dropTargetArea inside the container and then do kendo.destroy on the container.
    The issue is in destroy method of DropTarget widget, it checks either dropTarget or dropTargetArea internal list, but should check both of them. In my example I have one dropTarget and one dropTargetArea, and code removes group when destroying dropTarget even if dropTargetArea with this group still exists.
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 08 Jan 2015 Link to this post

    Hello Boris,

    thank you for contacting us. The problem you describe sounds like a real one, however I can't reproduce it in the linked dojo - please check the screenshot. Perhaps I am missing something? 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Boris Gheihman
    Boris Gheihman avatar
    12 posts
    Member since:
    May 2007

    Posted 08 Jan 2015 Link to this post

    It's very strange it's not showing any error today, because yesterday it was. It may be the version change. Anyway you can add another kendo.destroy(chart) and reproduce the issue, see updated version http://dojo.telerik.com/eGAFO/3
  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 12 Jan 2015 Link to this post

    Hello Boris,

    thanks for the clarification - I have logged the issue in our GitHub repository, we will address it soon.

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready