Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/decorators/customEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

const checkStatus = function (dataEventOff, e) {
const {show} = this.state
const {id} = this.props
const dataIsCapture = e.currentTarget.getAttribute('data-iscapture')
const isCapture = dataIsCapture && dataIsCapture === 'true' || this.props.isCapture
const currentItem = e.currentTarget.getAttribute('currentItem')
Expand All @@ -17,7 +18,7 @@ const checkStatus = function (dataEventOff, e) {
if (!dataEventOff) this.hideTooltip(e)
} else {
e.currentTarget.setAttribute('currentItem', 'true')
setUntargetItems(e.currentTarget, this.getTargetArray())
setUntargetItems(e.currentTarget, this.getTargetArray(id))
this.showTooltip(e)
}
}
Expand Down
3 changes: 2 additions & 1 deletion standalone/react-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ exports.default = function (target) {

var checkStatus = function checkStatus(dataEventOff, e) {
var show = this.state.show;
var id = this.props.id;

var dataIsCapture = e.currentTarget.getAttribute('data-iscapture');
var isCapture = dataIsCapture && dataIsCapture === 'true' || this.props.isCapture;
Expand All @@ -134,7 +135,7 @@ var checkStatus = function checkStatus(dataEventOff, e) {
if (!dataEventOff) this.hideTooltip(e);
} else {
e.currentTarget.setAttribute('currentItem', 'true');
setUntargetItems(e.currentTarget, this.getTargetArray());
setUntargetItems(e.currentTarget, this.getTargetArray(id));
this.showTooltip(e);
}
};
Expand Down
Loading