Skip to content

Commit

Permalink
messed up git, adding back FocusOut
Browse files Browse the repository at this point in the history
  • Loading branch information
ripter committed Aug 31, 2022
1 parent 6174fd2 commit fa84d99
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 73 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 14.17.6
5 changes: 5 additions & 0 deletions dist/index.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@


this.popper && this.popper.destroy();
},
onFocusOut: function onFocusOut() {
// Close the tooltip when the element loses focus.
// This happens when React updates the element.
this.onMouseleave();
}
});

Expand Down
2 changes: 1 addition & 1 deletion dist/webpack.bundle.js

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

5 changes: 5 additions & 0 deletions esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,9 @@ define('[tooltip]', {
// remove the popper.
this.popper && this.popper.destroy();
},
onFocusOut: function onFocusOut() {
// Close the tooltip when the element loses focus.
// This happens when React updates the element.
this.onMouseleave();
},
});
70 changes: 0 additions & 70 deletions index.js

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pep-tooltips",
"version": "1.0.0",
"version": "1.0.5",
"description": "Enable tooltips with an attribute",
"main": "dist/index.babel.js",
"dependencies": {
Expand Down
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,9 @@ define('[tooltip]', {
// remove the popper.
this.popper && this.popper.destroy();
},
onFocusOut: function onFocusOut() {
// Close the tooltip when the element loses focus.
// This happens when React updates the element.
this.onMouseleave();
},
});

0 comments on commit fa84d99

Please sign in to comment.