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 tab.js Problem #25384

Merged
merged 2 commits into from
Oct 29, 2018
Merged

Fix tab.js Problem #25384

merged 2 commits into from
Oct 29, 2018

Conversation

dercodercom
Copy link
Contributor

@dercodercom dercodercom commented Jan 20, 2018

I'm using Tab.js with remove function and get an error "TypeError: container is undefined [more info]", with this check the error is fixed.

Fixes: #27522

@XhmikosR XhmikosR requested a review from Johann-S January 21, 2018 07:03
@XhmikosR
Copy link
Member

@dercodercom: can you share a codepen demonstrating this issue? The fix does make sense in general, but we need to see when it actually fails.

@Johann-S
Copy link
Member

agree with @XhmikosR

@dercodercom
Copy link
Contributor Author

@XhmikosR the test link: https://codepen.io/anon/pen/mpYPaQ if you close a non-selected tab, the error comes.

@Johann-S
Copy link
Member

weird use case 🤔

Anyway, we need a unit test

@XhmikosR
Copy link
Member

XhmikosR commented Feb 3, 2018

@dercodercom: can you add a unit test as per @Johann-S's comment above?

@twbs-closer
Copy link

Hey there!

We're automatically closing this issue since the original poster (or another commenter) hasn't yet responded to the question or request made to them 14 days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked.

Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

(Please note that this is an automated comment.)

@XhmikosR
Copy link
Member

@Johann-S: maybe we should reconsider for this?

@Johann-S
Copy link
Member

ping @dercodercom

@twbs-closer
Copy link

Hey there!

We're automatically closing this issue since the original poster (or another commenter) hasn't yet responded to the question or request made to them 14 days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked.

Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

(Please note that this is an automated comment.)

@XhmikosR
Copy link
Member

@Johann-S: do you still plan to add a test case for this? If not let's close it.

@Johann-S
Copy link
Member

Yep we should add a unit test here, if @dercodercom cannot I'll try to do that

@XhmikosR
Copy link
Member

He hasn't responded for a long time so if you could tackle this that'd be awesome :)

@Johann-S Johann-S mentioned this pull request Oct 29, 2018
I'm using Tab.js with remove function and get an error "TypeError: container is undefined [more info]", with this check the error is fixed.
@Johann-S
Copy link
Member

@XhmikosR the job is done here, if you want to take a look 😉

@Johann-S Johann-S merged commit 2c2d04a into twbs:v4-dev Oct 29, 2018
@mdo mdo mentioned this pull request Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants