Skip to content

refs do not work in renderRow functions #1677

@jamiefaye

Description

@jamiefaye

ref='name' attributes generated inside of functions called via the renderRow property of ListViews do not work. Using this.refs.name returns undefined. This makes coding renderRow functions more difficult. Is this supposed to be this way?

#897 addresses this problem, however I have not been able to get any of the suggestions to work. In particular, attempts to use the ref={(row, sec, i) => ...
approach fail with complaints about writing to read-only properties.

How should I refer to one object from another inside a renderRow function?

I do have an example of this not working I can share if need be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions