I'm figuring out how React Documentation page's search feature works: https://reactjs.org/ .
I know they use DocSearch but I would like to know what happens behind the scene.
Currently I'm trying to know what happens when I type anything in the search bar. Here is what I got in the Chrome dev tools:
Source window (to see the Call Stack)
Using the Flame Graph and the Call Stack show what functions are called during the event, as well as what event are being triggered (in this example, Event:keypress
-> Event:textinput
-> Event:input
-> function call
)
The problem is, how do I know in which element of DOM triggered the event using devtools? I know it was #algolia-doc-search
triggered input
event by looking at the source code, but I would like to know a more convenient way to track DOM events.
Thanks!
Just in case, Firefox Dev Edition doesn't help much neither.