I'm trying to figure out what is being fired when I click an element on a website that's built with reactJS, I click the element and the event is fired, but when I try el.click()
nothing happens, the event is firing if it was either a right or a left mouse click, I don't know the first thing about reactJS but I was reading that reactJS has its own "synthetic events" which are supposed wrap native events! so I'm assuming el.click()
should fire this synthetic event whatever it is. But it doesn't.
I have created an event that writes out a string to the console, to test if it will run when I click the element, but it did not! Instead the original application event was fired.
So I thought maybe if I can list all the "synthetic events" for this element, I could fire the one with el.dispatchEvent(event)
?
I hope I'm making some sense here.