-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
v4 : Making .tooltip('show') throw an error on elements with display:none #20940
Conversation
try { | ||
$('<div title="tooltip title" style="display: none"/>').bootstrapTooltip('show') | ||
} | ||
catch (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing curly brace does not appear on the same line as the subsequent block brace-style
try { | ||
$('<div title="tooltip title" style="display: none"/>').bootstrapTooltip('show') | ||
} | ||
catch (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing curly brace does not appear on the same line as the subsequent block brace-style
try { | ||
$('<div title="tooltip title" style="display: none"/>').bootstrapTooltip('show') | ||
} | ||
catch (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing curly brace does not appear on the same line as the subsequent block brace-style
@@ -185,6 +185,19 @@ $(function () { | |||
.bootstrapTooltip('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { | |||
assert.expect(1) | |||
var done = assert.async() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected var, use let or const instead no-var
@@ -185,6 +185,19 @@ $(function () { | |||
.bootstrapTooltip('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { | |||
assert.expect(1) | |||
var done = assert.async() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected var, use let or const instead no-var
@@ -185,6 +185,19 @@ $(function () { | |||
.bootstrapTooltip('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { | |||
assert.expect(1) | |||
var done = assert.async() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected var, use let or const instead no-var
@@ -185,6 +185,19 @@ $(function () { | |||
.bootstrapTooltip('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback
@@ -185,6 +185,19 @@ $(function () { | |||
.bootstrapTooltip('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback
@@ -185,6 +185,19 @@ $(function () { | |||
.bootstrapTooltip('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback
try { | ||
$('<div data-toggle="popover" data-title="some title" data-content="@Johann-S" style="display: none"/>').bootstrapPopover('show') | ||
} | ||
catch (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing curly brace does not appear on the same line as the subsequent block brace-style
try { | ||
$('<div data-toggle="popover" data-title="some title" data-content="@Johann-S" style="display: none"/>').bootstrapPopover('show') | ||
} | ||
catch (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing curly brace does not appear on the same line as the subsequent block brace-style
try { | ||
$('<div data-toggle="popover" data-title="some title" data-content="@Johann-S" style="display: none"/>').bootstrapPopover('show') | ||
} | ||
catch (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing curly brace does not appear on the same line as the subsequent block brace-style
@@ -320,4 +320,16 @@ $(function () { | |||
.bootstrapPopover('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { | |||
assert.expect(1) | |||
var done = assert.async() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected var, use let or const instead no-var
@@ -320,4 +320,16 @@ $(function () { | |||
.bootstrapPopover('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { | |||
assert.expect(1) | |||
var done = assert.async() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected var, use let or const instead no-var
@@ -320,4 +320,16 @@ $(function () { | |||
.bootstrapPopover('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { | |||
assert.expect(1) | |||
var done = assert.async() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected var, use let or const instead no-var
@@ -320,4 +320,16 @@ $(function () { | |||
.bootstrapPopover('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback
@@ -320,4 +320,16 @@ $(function () { | |||
.bootstrapPopover('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback
@@ -320,4 +320,16 @@ $(function () { | |||
.bootstrapPopover('show') | |||
}) | |||
|
|||
QUnit.test('should throw an error when show is called on hidden elements', function (assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback
I know it's not a major feature but If you can review this PR @mdo or @bardiharborow thank you ❤️ |
I don't know jack about JS, but I like this as a preventative feature. |
I made this PR for this feature request in #17021 :