Skip to content

Commit c014dea

Browse files
committed
Fixed showing tooltip arrow placement.
1 parent 76839e0 commit c014dea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/bootstrap-angular-validation-tooltip.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/tooltip.message.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function($injector, validationService, $interpolate, $templateCache, validationC
7979
$errorTooltip.css({ top: ttPosition.top + 'px', left: ttPosition.left + 'px' });
8080
$errorTooltip.addClass('in');
8181

82-
if (!$errorTooltip.hasClass(ttPosition.placement.split('-')[0])) {
82+
if (ttPosition.placement && !$errorTooltip.hasClass(ttPosition.placement.split('-')[0])) {
8383
$errorTooltip.addClass(ttPosition.placement.split('-')[0]);
8484
}
8585

0 commit comments

Comments
 (0)