You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a breakpoint, console log, or anything else to notify you (that it has been triggered) on line 32 in welcome.js (so just inside the drop function)
Start it up and submit the name: "test"
Note that the repeater DOM ends with a <!--anchor--> node (after the last <compose> element)
Move the last (right) letter, but do not actually change its position in the list. Just drag it, move it a px or 2 to initiate the drag and release it again.
The drop event should now have fired! Like I said this is because the _initialSibling is set to the <!--anchor--> from step 3 which is then compared to the _currentSibling which is set to null. They are obviously not equal, triggering the drop event.
The text was updated successfully, but these errors were encountered:
Using your example project: https://github.com/michaelmalonenz/aurelia-dragula-example
welcome.js
(so just inside thedrop
function)<!--anchor-->
node (after the last<compose>
element)The drop event should now have fired! Like I said this is because the
_initialSibling
is set to the<!--anchor-->
from step 3 which is then compared to the_currentSibling
which is set tonull
. They are obviously not equal, triggering thedrop
event.The text was updated successfully, but these errors were encountered: