@@ -335,7 +335,7 @@ export class JsonArray extends Component<JsonArrayProps, JsonArrayState> {
335
335
onClick : handleRemove ,
336
336
className : 'rejt-minus-menu' ,
337
337
style : minus ,
338
- 'aria-label' : `remove the array '${ name } '` ,
338
+ 'aria-label' : `remove the array '${ String ( name ) } '` ,
339
339
} ) ;
340
340
341
341
return (
@@ -379,15 +379,15 @@ export class JsonArray extends Component<JsonArrayProps, JsonArrayState> {
379
379
onClick : this . handleAddMode ,
380
380
className : 'rejt-plus-menu' ,
381
381
style : plus ,
382
- 'aria-label' : `add a new item to the '${ name } ' array` ,
382
+ 'aria-label' : `add a new item to the '${ String ( name ) } ' array` ,
383
383
} ) ;
384
384
const removeItemButton =
385
385
minusMenuElement &&
386
386
cloneElement ( minusMenuElement , {
387
387
onClick : handleRemove ,
388
388
className : 'rejt-minus-menu' ,
389
389
style : minus ,
390
- 'aria-label' : `remove the array '${ name } '` ,
390
+ 'aria-label' : `remove the array '${ String ( name ) } '` ,
391
391
} ) ;
392
392
393
393
const onlyValue = true ;
@@ -670,8 +670,8 @@ export class JsonFunctionValue extends Component<JsonFunctionValueProps, JsonFun
670
670
onClick : handleRemove ,
671
671
className : 'rejt-minus-menu' ,
672
672
style : style . minus ,
673
- 'aria-label' : `remove the function '${ name } '${
674
- parentPropertyName ? ` from '${ parentPropertyName } '` : ''
673
+ 'aria-label' : `remove the function '${ String ( name ) } '${
674
+ String ( parentPropertyName ) ? ` from '${ String ( parentPropertyName ) } '` : ''
675
675
} `,
676
676
} ) ;
677
677
minusElement = resultOnlyResult ? null : minusMenuLayout ;
@@ -1222,7 +1222,7 @@ export class JsonObject extends Component<JsonObjectProps, JsonObjectState> {
1222
1222
onClick : handleRemove ,
1223
1223
className : 'rejt-minus-menu' ,
1224
1224
style : minus ,
1225
- 'aria-label' : `remove the object '${ name } '` ,
1225
+ 'aria-label' : `remove the object '${ String ( name ) } '` ,
1226
1226
} ) ;
1227
1227
1228
1228
return (
@@ -1268,15 +1268,15 @@ export class JsonObject extends Component<JsonObjectProps, JsonObjectState> {
1268
1268
onClick : this . handleAddMode ,
1269
1269
className : 'rejt-plus-menu' ,
1270
1270
style : plus ,
1271
- 'aria-label' : `add a new property to the object '${ name } '` ,
1271
+ 'aria-label' : `add a new property to the object '${ String ( name ) } '` ,
1272
1272
} ) ;
1273
1273
const removeItemButton =
1274
1274
minusMenuElement &&
1275
1275
cloneElement ( minusMenuElement , {
1276
1276
onClick : handleRemove ,
1277
1277
className : 'rejt-minus-menu' ,
1278
1278
style : minus ,
1279
- 'aria-label' : `remove the object '${ name } '` ,
1279
+ 'aria-label' : `remove the object '${ String ( name ) } '` ,
1280
1280
} ) ;
1281
1281
1282
1282
const list = keyList . map ( ( key ) => (
@@ -1540,8 +1540,8 @@ export class JsonValue extends Component<JsonValueProps, JsonValueState> {
1540
1540
onClick : handleRemove ,
1541
1541
className : 'rejt-minus-menu' ,
1542
1542
style : style . minus ,
1543
- 'aria-label' : `remove the property '${ name } ' with value '${ originalValue } '${
1544
- parentPropertyName ? ` from '${ parentPropertyName } '` : ''
1543
+ 'aria-label' : `remove the property '${ String ( name ) } ' with value '${ String ( originalValue ) } '${
1544
+ String ( parentPropertyName ) ? ` from '${ String ( parentPropertyName ) } '` : ''
1545
1545
} `,
1546
1546
} ) ;
1547
1547
0 commit comments