Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PKuhlmay opened this issue Sep 18, 2023 · 1 comment
Labels

Comments

@PKuhlmay
Copy link

PKuhlmay commented Sep 18, 2023

I have the following configuration:

  • a repeating element
  • a header inside the repeating element
  • a subheader inside the repeating element
  • a header, with the core field "header".
    Bildschirmfoto 2023-09-18 um 15 33 56
    When I now try to move the field with the core-field header inside the repeating element, the content bounces up and down very fast.
    I know that it won't be possible to have an element inside the repeating content element with any of the core fields, so it should not be possible to move this one inside the repeating element.
    But this behavior looks very strange. I think the mask-app tries to move it "before" or "after" the repeating element.
MaskDragDrop.mov

TYPO3 12.4.6
mask v8.3.5

@nhovratov
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants