File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -276,17 +276,17 @@ const renderBranch = (children, props) => {
276
276
</ div >
277
277
) ;
278
278
279
- const label = props . node . assistiveText || ( typeof props . node . label === 'string' ? props . node . label : null ) ;
279
+ const label =
280
+ props . node . assistiveText ||
281
+ ( typeof props . node . label === 'string' ? props . node . label : null ) ;
280
282
return (
281
283
< li
282
284
id = { props . htmlId }
283
285
role = "treeitem"
284
286
aria-level = { props . level }
285
287
aria-expanded = { isExpanded ? 'true' : 'false' }
286
288
aria-label = {
287
- props . node . nodes && props . node . nodes . length > 0
288
- ? label
289
- : null
289
+ props . node . nodes && props . node . nodes . length > 0 ? label : null
290
290
}
291
291
tabIndex = { getTabIndex ( props ) }
292
292
onKeyDown = { ( event ) => handleKeyDown ( event , props ) }
You can’t perform that action at this time.
0 commit comments