"Similarly, since this button is not for a form submit, it needs the explicit role of button to prevent triggering a get request and page reload."
I think you mean for that purpose, it needs type="button", not role="button"
type="button"
role="button"
You are correct! I was working on this too late and got my wires crossed :) Updated, thanks!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
"Similarly, since this button is not for a form submit, it needs the explicit role of button to prevent triggering a get request and page reload."
I think you mean for that purpose, it needs
type="button"
, notrole="button"
You are correct! I was working on this too late and got my wires crossed :) Updated, thanks!