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

Fix list widget reordering #10654

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Fix list widget reordering #10654

merged 1 commit into from
Jul 24, 2024

Conversation

farmaazon
Copy link
Contributor

Pull Request Description

Fixes, but does not close #10651 - I will try adding some e2e tests for dragging (again).

The problem is, that removing/hiding element in the same frame as dragging starts, the drag is stopped immediately. It is presented here: https://jsfiddle.net/1g34jhe9/ (change HIDE_IN_NEXT_FRAME to compare).

In our case, the element removal was technically postponed to nextTick, but that is not enough after some version bump, as this tick occures after DOM recalculating, not necessarily after rendering - changed it to setTimeout with proper comment.

Important Notes

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • [ ] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • [ ] Unit tests have been written where possible.

@farmaazon farmaazon added p-highest Should be completed ASAP --bug Type: bug --regression Important: regression -gui labels Jul 24, 2024
@farmaazon farmaazon added this to the 2024-07 Release milestone Jul 24, 2024
@farmaazon farmaazon self-assigned this Jul 24, 2024
@farmaazon farmaazon added the CI: No changelog needed Do not require a changelog entry for this PR. label Jul 24, 2024
@farmaazon farmaazon marked this pull request as ready for review July 24, 2024 09:49
@Frizi
Copy link
Contributor

Frizi commented Jul 24, 2024

A test for this behavior would be really helpful, as we rarely interact with it during normal development.

@jdunkerley jdunkerley added the CI: Ready to merge This PR is eligible for automatic merge label Jul 24, 2024
@mergify mergify bot merged commit 82052e8 into develop Jul 24, 2024
37 of 42 checks passed
@mergify mergify bot deleted the wip/farmaazon/fix-table-drag branch July 24, 2024 10:59
jdunkerley pushed a commit that referenced this pull request Jul 24, 2024
Fixes, but does not close #10651 - I will try adding some e2e tests for dragging (again).

The problem is, that removing/hiding element in the same frame as dragging starts, the drag is stopped immediately. It is presented here: https://jsfiddle.net/1g34jhe9/ (change `HIDE_IN_NEXT_FRAME` to compare).

In our case, the element removal was technically postponed to `nextTick`, but that is not enough after some version bump, as this tick occures after DOM recalculating, not necessarily after _rendering_ - changed it to setTimeout with proper comment.

(cherry picked from commit 82052e8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--bug Type: bug --regression Important: regression -gui CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge p-highest Should be completed ASAP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can’t reorder items in the Vector editor, just deletes them.
3 participants