Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #966: Search click handler on spans #984

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aalshakhshir1
Copy link

@aalshakhshir1 aalshakhshir1 commented Dec 10, 2023

Fixes an issue (#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

element:

Event handler condition

if (!navEl.dataset.contentId) {

Video:

RapiDoc.Search.mov

Fixes an issue  with search where clicking on endpoint path/method is not scrolling due to event handler checking on event.target.contentId attribute

    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.
@Aalshakhshir
Copy link

Hello @mrin9

Any updates on this one please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants