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

React error when using in production build #15

Open
ryang-bgl opened this issue Oct 23, 2018 · 1 comment
Open

React error when using in production build #15

ryang-bgl opened this issue Oct 23, 2018 · 1 comment

Comments

@ryang-bgl
Copy link

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,

@kunyan
Copy link
Owner

kunyan commented Oct 26, 2018

I just release a new version. it has been totally rewritten. there are no ref use any more

You can have a try

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants