Gernott / mask

TYPO3 Extension Mask
https://www.facebook.com/typo3mask
GNU General Public License v2.0
126 stars 86 forks source link

Content jumps back and forth when trying to move a core field into a repeating element. #590

Open PKuhlmay opened 1 year ago

PKuhlmay commented 1 year ago

I have the following configuration:

https://github.com/Gernott/mask/assets/107543296/cff4ab72-3e80-48cf-87b1-602ce3e3b5d4

TYPO3 12.4.6 mask v8.3.5

nhovratov commented 1 year ago

Hey @PKuhlmay, yes I know this behaviour. I can't fix this, because this is how Sortable behaves. I added a check, whether the field is allowed to be placed there. If not, Sortable just wont even show the drag/drop preview, but will jump to the next possible allowed gap, which triggers this glitchy view in your video. It would be cool, if it would just restore itself to the last position (this is how it worked in old jquery based Mask with jquery-ui).

If you have any suggestion, how this could be improved, I would be very glad.