I have upgraded my code from older enyo 2.1.0 to enyo 2.1.1, After upgrading m facing issue with every list component.
While tapping on list item first time, it is calling its setupItem function twice and returning index value -1 in second call.
Can anybody suggest?
0 ·
Comments
By "returning index value -1", do you mean that it's passing -1 in the inEvent.index field?
It was working fine with previous versions of enyo.
The release notes for 2.1.1 are at https://github.com/enyojs/enyo/wiki/Enyo-2.1.1-Release-Notes -- is there anything there that seems to affect your app?
What i am using is the renderRow(rowIndex) function. In earlier version when the rowIndex was out of range, it simply didn't call the setupItem function of the list.
After upgrade to 2.1.1, the same code is calling the setupItem function of the list for the rowIndex which is out of range.
Can somebody suggest?
I'll modify FlyweightRepeater.js for 2.2 to be resilient to invalid indices -- the renderRow code should have these lines at the start: