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

Fixes a bug when the [data-tabs] or [data-pills] called multiple times #284

Closed
wants to merge 1 commit into from

Conversation

workwithnano
Copy link
Contributor

Fixes a bug where using the [data-tabs] or [data-pills] multiple times in a page causes all tabs to be associated together.

Sample code to trigger bug on a page w/ bootstrap being used:

`

`

If you clicked on "Link2" in "tabgroup1" after loading the page, it will become active and all other tabs (including those in "tabgroup2" would become inactive, even though they are in a different tabgroup.

…s in a page causes all tabs to be associated together.
@fat
Copy link
Member

fat commented Sep 21, 2011

this is not the right way to solve this problem, as it takes delegation away and won't pick up tabs added after load.

@fat fat closed this Sep 21, 2011
@workwithnano
Copy link
Contributor Author

You're right, sorry about the false alarm.

@workwithnano
Copy link
Contributor Author

Found the issue: e.liveFired on line 31 is pulling "body" instead of the parent "ul". Changing line 31 from , $ul = $(e.liveFired) to , $ul = $this.closest('ul') fixes the bug without removing delegate benefits, but at a performance cost. Looking for other solutions… anything come to mind?

@fat
Copy link
Member

fat commented Sep 21, 2011

DocX pushed a commit to DocX/bootstrap that referenced this pull request Sep 16, 2014
Change the checks for Asset Pipeline from the
version of Rails to the presence of Sprockets
mikejr83 pushed a commit to SumTotalSystems/bootstrap that referenced this pull request Mar 29, 2016
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