Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort stop working when combining map and fixed items #86

Open
JonathanWi opened this issue Jun 21, 2017 · 0 comments
Open

Sort stop working when combining map and fixed items #86

JonathanWi opened this issue Jun 21, 2017 · 0 comments

Comments

@JonathanWi
Copy link

Hey there,

As referenced in this issue, displaying sortable items using map and adding a fixed items result in the component breaking.

As stated, this can be easily replicated in the demo by replacing the map render with :

<div className="dynamic-demo">
        <button onClick={::this.handleAddElement}>Add 1 element</button>
        <Sortable key={this._sortableKey} onSort={::this.handleSort}>
          {this.state.arr.map(renderItem, this)}
          <span>Hello</span>
        </Sortable>
      </div>

Any help here would be really appreciated!

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

No branches or pull requests

1 participant