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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.