openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Drag and Drop: sapUiDnDIndicatorWrapper is not set to display:none after DnD operation

Open mkueng1 opened this issue 5 years ago • 5 comments

OpenUI5 version: 1.71.23 Browser/version (+device/version): Chrome 87 / Windows

I have a bit of a complex setup having a header built with a Toolbar containing a custom div, sap.m.Link and sap.m.Button elements which are dependent on model changes. The main content is provided by nested components. One of these is now using the PlanningCalendar with Drag and Drop. My issue is that as soon as the user makes a drag and drop action, the hidden layer is added which disables the custom div and Link elements of the header as the sapUiDnDIndicatorWrapper DOM element overlays them - but not the buttons. A Link on the same view as the PlanningCalendar is no issue either.

DOM elements after the DnD operation:

<div class="sapUiDnDIndicatorWrapper">
    <div class="sapUiDnDIndicator" data-drop-layout="" data-drop-position="On" style="display: none;"></div>
</div>

Could you please add "display: none" to the Wrapper DOM element too, then everything is fine.

mkueng1 avatar Dec 15 '20 16:12 mkueng1

Hello @mkueng1, Thank you for sharing this finding. I've created an internal incident 2080443788. The status of the issue will be updated here in GitHub. Regards, Petya Bogdanova

PetyaMarkovaBogdanova avatar Dec 16 '20 11:12 PetyaMarkovaBogdanova

Hi, The issue is fixed in the master branch. We currently don't plan any downports as this issue seems to occur only in edge cases. Please upgrade to the next release to receive the fix.

JumpNRun avatar Jan 11 '21 15:01 JumpNRun

We try to update to the next LTS versions but as we have quite some ui5 applications in production this is a challenge. Is it at least possible to downport it to the recently released LTS (1.84) - currently we're at the 1.71?

mkueng1 avatar Jan 11 '21 16:01 mkueng1

Hi @mkueng1, I'll clarify that and let you know.

JumpNRun avatar Jan 12 '21 09:01 JumpNRun

I have good news. The fix was now also downported to 1.84.

JumpNRun avatar Jan 13 '21 10:01 JumpNRun