Thank you for reporting this bug. We will make it our priority to review this report.
[5.1.0] DataView with selected record and store update causes exception
[5.1.0] DataView with selected record and store update causes exception
This works fine in 5.0.1 but breaks in 5.1.0. What happens is when a record is selected in a dataview and the store is refreshed, the DataView tries to reselect the record but has an exception because the store is null. This looks to be because the old store is deleted and the new one isn't set before trying to select:
Code:
updateStore: function(store) {
if (!this.isConfiguring) {
delete this.store;
this.bindStore(store);
}
},
Here is a Fiddle reproducing the problem. Select a row first then click the button and you'll see the indexOf error in the console.
[5.1.0] DataView with selected record and store update causes exception
Aucun commentaire:
Enregistrer un commentaire