Skip to content

Commit

Permalink
Fixed bug introduces in the fix related to accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
stefangabos committed Nov 12, 2021
1 parent 225b14c commit a86f54c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/zebra_tooltips.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/zebra_tooltips.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
if (undefined !== tooltip_settings.content && tooltip_settings.content.trim() !== '') {

// when mouse cursor enters the parent element (or element receives focus)
$element.on('mouseenter, focus', function() {
$element.on('mouseenter focus', function() {

// clear the "title" attribute (if present) to prevent browser's default behavior
if (title) $(this).attr('title', '');
Expand All @@ -220,7 +220,7 @@
});

// when mouse cursor leaves the parent element (or looses focus)
$element.on('mouseleave, blur', function() {
$element.on('mouseleave blur', function() {

// hide the attached tooltip
_hide($element);
Expand Down
4 changes: 2 additions & 2 deletions src/zebra_tooltips.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
if (undefined !== tooltip_settings.content && tooltip_settings.content.trim() !== '') {

// when mouse cursor enters the parent element (or element receives focus)
$element.on('mouseenter, focus', function() {
$element.on('mouseenter focus', function() {

// clear the "title" attribute (if present) to prevent browser's default behavior
if (title) $(this).attr('title', '');
Expand All @@ -220,7 +220,7 @@
});

// when mouse cursor leaves the parent element (or looses focus)
$element.on('mouseleave, blur', function() {
$element.on('mouseleave blur', function() {

// hide the attached tooltip
_hide($element);
Expand Down

0 comments on commit a86f54c

Please sign in to comment.