Yomguithereal / react-blessed

A react renderer for blessed.
MIT License
4.46k stars 176 forks source link

support "selected" prop #39

Closed davidmarkclements closed 8 years ago

davidmarkclements commented 8 years ago

upon render, blessed (in list.js setItems method) attempts to relocate an item by its content, by using indexOf - the assumption being that every item in a list is unique. If this isn't the case the first duplicate is selected. This is why we need a queue that we process after other keys (in particular after the 'items' key)