Ah, mostly that was a copy and paste from the github code I made for this project. Having a role="button", keeps the linter quiet. It's important to define roles on elements without implied actions (like <button>) for screen readers and other accessibility reasons.
It's not required for any drag specific results though.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.