File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -313,9 +313,14 @@ var default_1 = (function () {
313
313
for ( var name_1 in properties ) {
314
314
if ( reqBody . mustDisplay ( name_1 ) ) {
315
315
var tag = prop . ele ( name_1 ) ;
316
+ console . log ( name_1 , tag ) ;
316
317
if ( reqBody . mustDisplayValue ( name_1 ) ) {
317
318
var property = properties [ name_1 ] ;
318
- tag . attributes = property . attributes ;
319
+ if ( tag . attributes )
320
+ for ( var attName in property . attributes )
321
+ tag . attributes [ attName ] = property . attributes [ attName ] ;
322
+ else
323
+ tag . attributes = property . attributes ;
319
324
tag . add ( property . value ) ;
320
325
}
321
326
}
Original file line number Diff line number Diff line change @@ -472,10 +472,16 @@ export default class implements HTTPMethod
472
472
if ( reqBody . mustDisplay ( name ) )
473
473
{
474
474
const tag = prop . ele ( name ) ;
475
+ console . log ( name , tag ) ;
475
476
if ( reqBody . mustDisplayValue ( name ) )
476
477
{
477
478
const property = properties [ name ] ;
478
- tag . attributes = property . attributes ;
479
+ if ( tag . attributes )
480
+ for ( const attName in property . attributes )
481
+ tag . attributes [ attName ] = property . attributes [ attName ] ;
482
+ else
483
+ tag . attributes = property . attributes ;
484
+
479
485
tag . add ( property . value ) ;
480
486
}
481
487
}
You can’t perform that action at this time.
0 commit comments