-
Notifications
You must be signed in to change notification settings - Fork 214
[bug] Cannot add property chosen, object is not extensible #149
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
Comments
import {produce} from 'immer';
onChoose(evt: SortableEvent) {
const { list, setList } = this.props;
const newList = produce(list,(draft)=>{
draft[evt.oldIndex!].chosen = true;
})
setList(newList, this.sortable, store);
} this is no problme!!! |
@dyyz1993 |
Maybe helpful
|
thanks, it helped me ! |
Basically the same issue/bug as this one 237, and my comment from there. So this might be fixed in v6.1.5. but unfortunately it's not published.
|
This worked out for me <ReactSortable |
Uh oh!
There was an error while loading. Please reload this page.
when item is object , [...list] is error .
Uncaught TypeError: Cannot add property chosen, object is not extensible
The text was updated successfully, but these errors were encountered: