File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
packages/ui/src/elements/TreeView/NestedSectionsTable Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 229229 opacity : 0.4 ;
230230 }
231231
232+ & __section--invalid-target {
233+ opacity : 0.4 ;
234+ }
235+
232236 & __placeholder-section {
233237 display : table-row-group ;
234238 pointer-events : none ;
Original file line number Diff line number Diff line change @@ -265,12 +265,15 @@ export const DivTableSection: React.FC<DivTableSectionProps> = ({
265265
266266 const isOdd = absoluteRowIndex % 2 === 1
267267
268+ const isInvalidTarget = invalidTargetIDs ?. has ( rowItem . rowID )
269+
268270 const renderResult = (
269271 < React . Fragment key = { rowItem . rowID } >
270272 < div
271273 className = { [
272274 `${ baseClass } __section` ,
273275 isDragging && `${ baseClass } __section--dragging` ,
276+ isDragging && isInvalidTarget && `${ baseClass } __section--invalid-target` ,
274277 isOdd && `${ baseClass } __section--odd` ,
275278 targetParentID === rowItem . rowID && `${ baseClass } __section--target` ,
276279 selectedRowIDs . includes ( rowItem . rowID ) && `${ baseClass } __section--selected` ,
You can’t perform that action at this time.
0 commit comments