Skip to content

Cannot read property 'style' of undefined in version of '1.26.4' #60

@LeoCai

Description

@LeoCai

Hi~, i upgrade the version of react-trello from '1.26.0' to '1.26.4', i got the following error.

uncaught at _callee TypeError: Cannot read property 'style' of undefined
    at eval (webpack-internal:///870:151:100)
    at eval (webpack-internal:///2165:359:24)
    at DragHandle.render (webpack-internal:///2179:181:14)
    at eval (webpack-internal:///1257:793:21)
    at measureLifeCyclePerf (webpack-internal:///1257:73:12)
    at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (webpack-internal:///1257:792:25)
    at ReactCompositeComponentWrapper._renderValidatedComponent (webpack-internal:///1257:819:32)
    at ReactCompositeComponentWrapper.performInitialMount (webpack-internal:///1257:359:30)
    at ReactCompositeComponentWrapper.mountComponent (webpack-internal:///1257:255:21)
    at Object.mountComponent (webpack-internal:///179:43:35)

This error disappear in v1.26.0

My Code is as bellow:

 <Board
            style={{  }}
            data={{ lanes: laneList }}
            draggable
            customCardLayout
            handleDragEnd={this.handleDragEnd.bind(this)}
            handleDragStart={this.handleDragStart.bind(this)}
            onCardClick={this.onWorkItemClick.bind(this)}
            customLaneHeader={<CustomLaneHeader />}
          >
            <CustomCard stateList={nextStateList} intl={intl} listMap={listMap} dispatch={dispatch} />
</Board>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions