mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
More info in monitorCodeUse call
This commit is contained in:
@@ -312,7 +312,9 @@ var SimpleEventPlugin = {
|
||||
var returnValue = EventPluginUtils.executeDispatch(event, listener, domID);
|
||||
if (__DEV__) {
|
||||
if (typeof returnValue === 'boolean') {
|
||||
monitorCodeUse('react_event_return_false');
|
||||
monitorCodeUse('react_event_return_false', {
|
||||
eventHandlerName: listener.__reactBoundMethod.displayName
|
||||
});
|
||||
console.warn(
|
||||
'Returning `false` from an event handler is deprecated and will ' +
|
||||
'be ignored in a future release. Instead, manually call ' +
|
||||
|
||||
Reference in New Issue
Block a user