I'm studying on esri direction widget, and I don't know the rule of switch destinations with way point.
I'm testing and found that:
1) Add 5 destinations (A,B,C,D,E) on the map: A > B > C > D > E
2) Add 2 way points (a,b) between C and D: A > B > C > a > b > D > E
3) Drag C after D.
There is a console bug: Uncaught TypeError: Cannot read property 'name' of undefined.
Direction widget url: Directions Widget
Destination for testing:
Is there any rule for switch destinations with way points?