Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJS-16667
in
5.1.3.
-
Sencha Premium Member
selectPath does not work if idProperty type is int
so I changed idProperty to a string and it works. (But I should be able to use int !)
Here is where the bug is
if (!current || (rooted && current.get(field) !== keys[1])) {
this will probably fix the problem but it might have weaknesses
if (!current || (rooted && current.get(field) != keys[1])) {
Peter
-
Thanks for the report. Can you please post a test case which reproduces the issue you are experiencing?
https://fiddle.sencha.com/#home
-
Sencha Premium Member
-
Thanks for the report! I have opened a bug in our bug tracker.
-
Sencha Premium Member
Workaround code example (as rhubarb65 mentioned):
Code:
Ext.define('MyNode', {
extend: 'Ext.data.Model',
fields: [{
name: 'id',
type: 'string' // explicit
}]
// ...
});
-
Thanks for sharing that with the community.