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
Drag-and-dropping and removing a row in a fb:dnd-repeat causes an exception #6000
Comments
After failed DnD, some |
The layout of the HTML before is: <div id="dialog-email-settings≡xf-2629≡fb-email-templates≡xf-2721⊙1" class="fb-form-fields xbl-component xbl-fr-dnd-repeat xbl-javascript-lifecycle">
<div id="repeat-begin-dialog-email-settings≡xf-2629≡fb-email-templates≡xf-2721≡xf-2779⊙1" class="xforms-repeat-begin-end xforms-update-full"/>
<div class="xforms-repeat-delimiter"/>
<span class="xforms-update-full"> </span>
<div class="fb-form-field xforms-dnd-item xforms-update-full xforms-dnd-moves" id="dialog-email-settings≡xf-2629≡fb-email-templates≡xf-2721≡xf-2782⊙1-1">
...
</div>
<span class="xforms-update-full"> </span>
<div class="xforms-repeat-delimiter"/>
<div class="fb-form-field xforms-dnd-item xforms-dnd-moves xforms-repeat-selected-item-2" id="dialog-email-settings≡xf-2629≡fb-email-templates≡xf-2721≡xf-2782⊙1-2">
...
</div>
<div id="repeat-end-dialog-email-settings≡xf-2629≡fb-email-templates≡xf-2721≡xf-2779⊙1" class="xforms-repeat-begin-end"/>
</div> |
Layout of the HTML after: <div id="dialog-email-settings≡xf-2629≡fb-email-templates≡xf-2721⊙1" class="fb-form-fields xbl-component xbl-fr-dnd-repeat xbl-javascript-lifecycle">
<div id="repeat-begin-dialog-email-settings≡xf-2629≡fb-email-templates≡xf-2721≡xf-2779⊙1" class="xforms-repeat-begin-end xforms-update-full"/>
<div class="xforms-repeat-delimiter"/>
<span class="xforms-update-full"> </span>
<span class="xforms-update-full"> </span>
<div class="xforms-repeat-delimiter"/>
<div class="fb-form-field xforms-dnd-item xforms-update-full xforms-dnd-moves" id="dialog-email-settings≡xf-2629≡fb-email-templates≡xf-2721≡xf-2782⊙1-1">
...
</div>
<div class="fb-form-field xforms-dnd-item xforms-dnd-moves xforms-repeat-selected-item-2" id="dialog-email-settings≡xf-2629≡fb-email-templates≡xf-2721≡xf-2782⊙1-2">
...
</div>
<div id="repeat-end-dialog-email-settings≡xf-2629≡fb-email-templates≡xf-2721≡xf-2779⊙1" class="xforms-repeat-begin-end"/>
</div> |
Indeed, we say that we allow a drop before the last For reference, In the case where we move the item from second position to first, things work, and the layout is correct. In the failing case, I also note that we compute |
The markup pattern inside the container is:
Current code checks we can drop before another |
Example in the Email Settings dialog (but this happens elsewhere as well):
email.mp4
To reproduce:
The text was updated successfully, but these errors were encountered: