onMouseDown is called before onClickand is the one that move the focus to the button therefore preventDefault on onClick doesn't really help as the focus is already taken by the button
All 2 comments
onMouseDown is called before onClickand is the one that move the focus to the button therefore preventDefault on onClick doesn't really help as the focus is already taken by the button
Most helpful comment
onMouseDownis called beforeonClickand is the one that move the focus to the button thereforepreventDefaultononClickdoesn't really help as the focus is already taken by the button