Skip to content
Advertisement

Tag: jquery-ui-sortable

React and jquery-ui/ui/widgets/sortable: Child component not reorder as expect

I have an array in “State” of parent component called “portfolios”. You can access by using: “this.state.portfolios”. And a child component called “StockDetailsComponent”. In parent component, I’m using map function to render child component “StockDetailsComponent” like this: It’s ok. But when I reorder “this.state.portfolios”, child component re-render not as expected. Before: portfolios = [“object_stock_symbol_1”, “object_stock_symbol_2”]; After re-order: portfolios = [“object_stock_symbol_2”,

Advertisement