Skip to content

Commit 5143291

Browse files
committed
fix: dispatch end event on action element rather than document
1 parent 2b8771d commit 5143291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ googleMapsHandlers.geocoder = async (action) => {
160160
};
161161

162162
function dispatchEvent(action) {
163-
document.dispatchEvent(
163+
action.element.dispatchEvent(
164164
new CustomEvent(action.endEvent, {
165165
detail: {
166166
data: action

0 commit comments

Comments
 (0)