Fixes an issue (https://github.com/rapi-doc/RapiDoc/issues/966) with search where clicking on endpoint path/method is not scrolling due to event handler checking on event.target.contentId attribute. open to ideas/thoughts for a better fix
if (!navEl.dataset.contentId) {
return;
}
This fix makes sure when clicking on any child element to pass the proper data-content-id within the event , not only the wrapper div
Fixes an issue (https://github.com/rapi-doc/RapiDoc/issues/966) with search where clicking on endpoint path/method is not scrolling due to event handler checking on event.target.contentId attribute. open to ideas/thoughts for a better fix
This fix makes sure when clicking on any child element to pass the proper data-content-id within the event , not only the wrapper div
element: https://github.com/rapi-doc/RapiDoc/blob/18afdce428b1bc6838d52c9f391a982817271da4/src/templates/advance-search-template.js#L48
Event handler condition
https://github.com/rapi-doc/RapiDoc/blob/18afdce428b1bc6838d52c9f391a982817271da4/src/rapidoc.js#L952
Video:
https://github.com/rapi-doc/RapiDoc/assets/139879471/9e49658c-6632-4aa5-ace7-4cae272fcee6