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

do not show tab when disabled #20174

Closed
wants to merge 3 commits into from
Closed

Conversation

maxbeatty
Copy link
Contributor

attempts to fix #19849


$(tabsHTML)
.find('li:last a')
.on('show.bs.tab', function (e) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected function expression prefer-arrow-callback
'e' is defined but never used no-unused-vars

@maxbeatty
Copy link
Contributor Author

Is it better to fix the @houndci-bot comments or keep with the existing style of the test file?

@XhmikosR
Copy link
Member

I guess you can ignore the hound issues.

@maxbeatty
Copy link
Contributor Author

👍 happy to update the whole file so it passes hound. whatever I can I do to move v4 forward ⏩


$(tabsHTML)
.find('li:last a')
.on('show.bs.tab', function () {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected function expression prefer-arrow-callback

@maxbeatty
Copy link
Contributor Author

attempted to fix @houndci-bot's comments but then tests broke because underlying phantomjs isn't new enough to handle ES2015 like const and arrow functions :(

$(function () {
'use strict';
'use strict'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove the semicolon ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's been awhile since I did this. most likely just following eslint prompts in atom

@@ -150,6 +150,38 @@
</div>
</div>

<h4>Tabs with disabled tab</h4>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you add a visuel test in addition of a unit test ? Currently visuel tests are usefull to show something impossible to test in unit tests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I felt it was a clearer way to demonstrate and verify the fix

@mdo mdo mentioned this pull request Nov 28, 2016
7 tasks
@mdo
Copy link
Member

mdo commented Nov 28, 2016

Closing as dupe of #20795.

@mdo mdo closed this Nov 28, 2016
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.

6 participants