Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

React error when using in production build #15

@ryang-bgl

Description

@ryang-bgl

got the following react error when using production build.
https://reactjs.org/warnings/refs-must-have-owner.html

I think the reason is that in src/EditableTextField.js, input has ref='el'.

 <XEditable isLoading={false} save={this.save} cancel={this.cancel}>
      <input ref='el' id={this.props.id} type='text' className={inputClassName} name={this.props.name} defaultValue={this.props.value} placeholder={this.props.placeholder} autoFocus/>
      <span className='editable-clear-x' onClick={this.clear}></span>
    </XEditable>

Could you help to have a look and release a fix for this?

Much appreciated.

Cheers,

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