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

Mistake in the Documentation for tab shown event. #33509

Closed
iaroslavglodov opened this issue Mar 30, 2021 · 1 comment · Fixed by #33724
Closed

Mistake in the Documentation for tab shown event. #33509

iaroslavglodov opened this issue Mar 30, 2021 · 1 comment · Fixed by #33724

Comments

@iaroslavglodov
Copy link

At the end of the Navbar documentation, there is an example of weird behavior. When using the same code only the first tab event is treigerring. If using as tabEl parent <ul> element it works as expected.

var tabEl = document.querySelector('button[data-bs-toggle="tab"]')
tabEl.addEventListener('shown.bs.tab', function (event) {
  event.target // newly activated tab
  event.relatedTarget // previous active tab
})

—— macOS 11.2.3, Chrome Version 89.0.4389.90 (Official Build) (arm64)

@yunweneric
Copy link

Hello I will like to fix this issue.

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

Successfully merging a pull request may close this issue.

3 participants