File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -713,7 +713,10 @@ function FolderScopeItemRenderer(
713713 customClassNames ?. customLabelClassName ,
714714 ) }
715715 role = "button"
716- onClick = { ( e ) => toggleFolderCollapse ( id , e ) }
716+ onClick = { ( e ) => {
717+ e . stopPropagation ( ) ;
718+ toggleFolderCollapse ( id , e ) ;
719+ } }
717720 title = { itemLabel ?? '' }
718721 onContextMenu = { ( e ) => {
719722 e . preventDefault ( ) ;
@@ -1475,7 +1478,12 @@ function GroupedItemRenderer(
14751478 'react-fields-keeper-mapping-column-content-action' ,
14761479 ) }
14771480 role = "button"
1478- onClick = { groupHeader . onGroupHeaderToggle }
1481+ onClick = { ( e ) => {
1482+ if ( toggleCheckboxOnLabelClick ) {
1483+ e . stopPropagation ( ) ;
1484+ }
1485+ groupHeader . onGroupHeaderToggle ( ) ;
1486+ } }
14791487 style = {
14801488 groupHeight > 0
14811489 ? { zIndex : 1 , ...accentColorStyle }
@@ -1551,6 +1559,11 @@ function GroupedItemRenderer(
15511559 < div
15521560 className = "react-fields-keeper-mapping-column-content-suffix"
15531561 style = { { display : showSuffixOnHover && ! isItemHovered ? 'none' : 'block' } }
1562+ onClick = { ( e ) => {
1563+ if ( toggleCheckboxOnLabelClick ) {
1564+ e . stopPropagation ( ) ;
1565+ }
1566+ } }
15541567 >
15551568 { suffixNodeRendererOutput }
15561569 </ div >
You can’t perform that action at this time.
0 commit comments