Skip to content

[Bug] CSSPropertyOperations.setValueForStyles does not check for undefined component argument #7004

@pke

Description

@pke

Version: 15.1.0

setValueForStyles: function(node, styles, component) {
    if (__DEV__) {
      ReactInstrumentation.debugTool.onHostOperation(
        component._debugID,
        'update styles',
        styles
      );
    }

All other code in that component is tolerant about a missing component argument.
This changed introduced a breaking bug in https://github.com/adambbecker/react-style-transition-group and the way it calls CSSPropertyOperations.setValueForStyles without a component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions