PDA

View Full Version : [FIXED] Ext 5: "isNonData" console error when grid store don't have any records



SurenderBhyan1
18 Sep 2014, 8:14 AM
Ext Version: 5.0.1
Browser Version : Chrome 37

Description:
I have a simple grid where each columns have a textfield item. Whenever there are no data in grid store and i am trying to move from one textfiled to another using TAB. Getting the error in console that "Cannot read property 'isNonData' of null "

Step to reproduce:
Click into column 1 header text field and press TAB button.

Result that was expected:
Focus should move from column 1 text field to column 2 text field and so on. [As it was in Ext version 5.0.0]

Fiddle: https://fiddle.sencha.com/#fiddle/ai8

Result that occurs instead:
when focus is in Column 1 text field and we press TAB button then focus is trying to move from Column 1 text filed to Grid panel cells and this time Grid don't have any data and its gives error in console. [this issue is not reproducible in 5.0.0 and focus moves from left to right while Tabbing]

So basically there are two issue:
Focus is moving from first text field to Grid cell on tabbing
and if Grid don't have any data, then it throw console error

Gary Schlosberg
18 Sep 2014, 9:03 AM
Thanks for the report! I have opened a bug in our bug tracker.

SebTardif
2 Jan 2015, 8:27 PM
Cannot reproduce anymore with latest nightly, see https://fiddle.sencha.com/#fiddle/fq4

agarberi
5 Jan 2015, 3:06 AM
It seems that now it does not throw the exception, but the focus does NOT go to the next field (at least until you have clicked on all fields).

I opened another bug report for that: TabIndex not set until you click on the fields (in grid columns) (http://www.sencha.com/forum/showthread.php?296631-TabIndex-not-set-until-you-click-on-the-fields-(in-grid-columns)&p=1083180).

SurenderBhyan1
5 Jan 2015, 12:57 PM
It seems that now it does not throw the exception, but the focus does NOT go to the next field (at least until you have clicked on all fields).

I opened another bug report for that: TabIndex not set until you click on the fields (in grid columns) (http://www.sencha.com/forum/showthread.php?296631-TabIndex-not-set-until-you-click-on-the-fields-(in-grid-columns)&p=1083180).

I'm also able to reproduce it as Agarberi explained in Chrome 39 (ExtJS 5.1.0.107), thanks for further bug reporting :)

Thanks Agarberi / SebTardif,