Skip to content

Commit

Permalink
currentTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
stulip committed Dec 18, 2020
1 parent 447271a commit f943e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ function createHTML(options = {}) {
sendEvent: function (type, data){
event.preventDefault();
event.stopPropagation();
var id = event.target.id;
if ( !id ) event.target.id = id = generateId();
var id = event.currentTarget.id;
if ( !id ) event.currentTarget.id = id = generateId();
_postMessage({type, id, data});
}
}
Expand Down

0 comments on commit f943e98

Please sign in to comment.