PDA

View Full Version : [CLOSED] store insert behavior changed



mankz
5 Oct 2014, 9:56 AM
Is this documented somewhere? After an insert, store is now sorted. In Ext JS 4, this didn't happen. Try running the fiddle in 4 vs 5 versions. Comment? How can I restore old behavior in 5?

https://fiddle.sencha.com/#fiddle/bbd

Gary Schlosberg
7 Oct 2014, 2:20 PM
Thanks for the report! I have opened a bug in our bug tracker.

evant
8 Oct 2014, 3:26 AM
This is intended. It's something we'd wanted to fix for a while but was too large of a change to go in 4.x. The store needs to remain consistent with filtering, it's an odd behaviour to have it "filtered but not really".

To restore the old behaviour you could have the filter be something like:



return record.get('foo') === 'bar' || record.get('someNewFlag');