Skip to content

Commit

Permalink
Merge pull request #949 from julien/issue-948
Browse files Browse the repository at this point in the history
Use event.delegateTarget instead of event.target | Fixes #948
  • Loading branch information
carloslancha authored May 29, 2018
2 parents 76f7e34 + bcfa8b3 commit 61937c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/clay-tooltip/src/ClayTooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ClayTooltip extends Component {
* @protected
*/
_handleMouseEnter(event) {
const target = event.target;
const target = event.delegateTarget;
let title = target.getAttribute('title');
if (title) {
target.setAttribute('data-title', title);
Expand All @@ -102,7 +102,7 @@ class ClayTooltip extends Component {
* @protected
*/
_handleMouseLeave(event) {
const target = event.target;
const target = event.delegateTarget;
const title = target.getAttribute('data-title');
if (title) {
target.setAttribute('title', title);
Expand Down

0 comments on commit 61937c7

Please sign in to comment.