File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -140,11 +140,12 @@ JSONEditor.defaults.editors.object = JSONEditor.AbstractEditor.extend({
140140 var row = this . theme . getGridRow ( ) ;
141141 container . appendChild ( row ) ;
142142 for ( j = 0 ; j < rows [ i ] . editors . length ; j ++ ) {
143- var editor = this . editors [ rows [ i ] . editors [ j ] . key ] ;
143+ var key = rows [ i ] . editors [ j ] . key ;
144+ var editor = this . editors [ key ] ;
144145
145146 if ( editor . options . hidden ) editor . container . style . display = 'none' ;
146147 else this . theme . setGridColumnSize ( editor . container , rows [ i ] . editors [ j ] . width ) ;
147-
148+ editor . container . className += ' container-' + key ;
148149 row . appendChild ( editor . container ) ;
149150 }
150151 }
@@ -159,7 +160,7 @@ JSONEditor.defaults.editors.object = JSONEditor.AbstractEditor.extend({
159160
160161 if ( editor . options . hidden ) editor . container . style . display = 'none' ;
161162 else self . theme . setGridColumnSize ( editor . container , 12 ) ;
162-
163+ editor . container . className += ' container-' + key ;
163164 row . appendChild ( editor . container ) ;
164165 } ) ;
165166 }
You can’t perform that action at this time.
0 commit comments