File tree Expand file tree Collapse file tree
apps/sensenet/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -331,11 +331,7 @@ export const ContentList = <T extends GenericContent = GenericContent>(props: Co
331331
332332 const handleActivateItem = useCallback (
333333 ( item : T ) => {
334- if ( item . IsFolder ) {
335- props . onParentChange ( item )
336- } else {
337- props . onActivateItem ( item )
338- }
334+ props . onParentChange ( item )
339335 } ,
340336 [ props ] ,
341337 )
Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ export function Grid<T extends GenericContent = GenericContent>(props: GridProps
8383 const onRowDoubleClicked = ( item : RowDoubleClickedEvent ) => {
8484 if ( item . data ) {
8585 props . onActiveItemChange ?.( item . data )
86+ setLoadingWithMinDuration ( true )
87+ props . onParentChange ( item . data )
8688 }
87- setLoadingWithMinDuration ( true )
88- item . data . isFolder ? props . onParentChange ( item . data ) : props . onActivateItem ( item . data )
8989 }
9090
9191 const onRowClicked = ( item : RowClickedEvent ) => {
You can’t perform that action at this time.
0 commit comments