cjolif / dojo-todo-app

Dojo ToDo App
Other
28 stars 15 forks source link

add a new item and set "Priority" first will cause detail view display nothing #79

Closed eric-wang closed 12 years ago

eric-wang commented 12 years ago

To reproduce this error, follow the steps:

  1. click on "+" button on "items,list" view
  2. click on "Priority" list
  3. select "High" and click "Back"

The detail view display nothing.

eric-wang commented 12 years ago

This issue is caused by : transition to "Priority" view called "detail" view's beforeDeactivate() method, and in this method the new item's title is empty, so the data are removed from itemlistmodel and the current select_item index out of itemlistmodel. When come back from "Priority" view, "detail" view display nothing because index out of.