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(cdk/drag-drop): remove preview after animate to placeholder animation completes #29439

Conversation

skrtheboss
Copy link
Contributor

The comparison between the event target element and this._preview never returned true because this._preview is a class, and we need to compare its element instead. This regression was introduced in commit ebab924#diff-65b82ba5c290701d792881e9e389e8f1961848abb740bb20940d4383dfae4eacL121-R117.

…tion completes

The comparison between the event target element and this._preview never returned true because this._preview is a class, and we need to compare its element instead. This regression was introduced in commit angular@ebab924#diff-65b82ba5c290701d792881e9e389e8f1961848abb740bb20940d4383dfae4eacL121-R117.
@skrtheboss skrtheboss requested a review from a team as a code owner July 16, 2024 09:45
@skrtheboss skrtheboss requested review from crisbeto and andrewseguin and removed request for a team July 16, 2024 09:45
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good, but there's a lint warning.

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Jul 16, 2024
@crisbeto crisbeto removed the request for review from andrewseguin July 16, 2024 12:40
@crisbeto crisbeto merged commit 5655661 into angular:main Jul 16, 2024
24 of 26 checks passed
crisbeto pushed a commit that referenced this pull request Jul 16, 2024
…tion completes (#29439)

* fix(cdk/drag-drop): remove preview after animate to placeholder animation completes

The comparison between the event target element and this._preview never returned true because this._preview is a class, and we need to compare its element instead. This regression was introduced in commit ebab924#diff-65b82ba5c290701d792881e9e389e8f1961848abb740bb20940d4383dfae4eacL121-R117.

* fixup! fix(cdk/drag-drop): remove preview after animate to placeholder animation completes

Fix linting error

(cherry picked from commit 5655661)
@skrtheboss skrtheboss deleted the fix/cdk-drag-ref-preview-not-removed-afeter-animation-is-finished branch July 17, 2024 18:58
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants