Skip to content

Commit

Permalink
fix: return value of Event.stopPropagation() should be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
andycall authored and wssgcg1213 committed May 7, 2021
1 parent 67e799a commit 6fc38ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/bindings/jsc/DOM/event.cc
Expand Up @@ -176,7 +176,7 @@ JSValueRef JSEvent::stopPropagation(JSContextRef ctx, JSObjectRef function, JSOb
JSValueRef *exception) {
auto eventInstance = static_cast<EventInstance *>(JSObjectGetPrivate(thisObject));
eventInstance->_propagationStopped = true;
return nullptr;
return JSValueMakeUndefined(ctx);
}

JSValueRef JSEvent::stopImmediatePropagation(JSContextRef ctx, JSObjectRef function,
Expand Down

0 comments on commit 6fc38ec

Please sign in to comment.