Yet, it hasn’t even come close.
No it hasn't, yet. But keep in mind that our dependence on electronic infrastructure is still very new to civilization. There has been an event in recent history, shortly before the electronic era, that looks like it would have very severe consequences if it were to happen today.
The Carrington Event: https://www.history.com/news/a-perfect-solar-superstorm-the-1859-carrington-event
Something like this is, IMHO, far more likely and dangerous than a man-made EMP attack.