-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Markdown field content does not swap places when parent list item is reordered #754
Comments
This is almost certainly the same state persist issue that causes the markdown widget to maintain its value when a new entry is created from an existing entry. It happens because the markdown widget value isn't directly controlled by the Redux state object, but rather maintains its own state and updates the Redux store as necessary. Ideally, rather than attempting to address this in the markdown widget, we should provide a high level solution that can be adopted by other widgets that manage their own value state. Related to #901. |
has anyone found a workaround regarding this? :/ I have created an FAQ page with hundreds of entries and now I cannot reorder them... |
Reordering does work, the markdown field just doesn't update. If you reorder without editing the markdown fields themselves, the reorder will work. Collapsing the list items helps, as you need to ignore the markdown fields (and don't edit them) until this bug is resolved. |
They don't appear to reorder. If you save after the reorder, you'll see the reorder was effective. That's why I recommended keeping the fields collapsed to avoid confusion during reorder. Obviously this is extremely janky and not how it should work, just wanted you to have a workaround until we have a fix. |
Ah, I see. Thanks for the feedback! |
Closed in #2129. |
@erquhart This bug seems to still be occurring in [email protected], re-ordering a list updates non-markdown fields but the markdown fields show out of date text until you toggle Rich Text / Markdown. |
I've been overhauling the markdown widget for a while (just got put on hold for a bit), a fix for this will be included. Sent with GitHawk |
When a list widget item with a markdown field is reordered, the data from the markdown field remains in its original position in the list.
Note that this only occurs in the UI, the markdown widget value is correct in the persisted data.
The text was updated successfully, but these errors were encountered: