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: no trigger toolbox block deletion style #8418

Closed
wants to merge 1 commit into from

Conversation

zfangqijun
Copy link
Contributor

@zfangqijun zfangqijun commented Jul 23, 2024

The basics

The details

Description

When the flyout is open, dragging a Block to the Toolbox does not trigger the Toolbox's Block deletion style(blocklyToolboxDelete)

Reproduction steps

  1. Blockly.getMainWorkspace().getFlyout().setAutoClose(false)
  2. Open Flyout
  3. Drag Block to Toolbox

Resolves

Fixes #8417

Proposed Changes

Reason for Changes

I'm not sure if this change is appropriate 🤔

The reason is that when the flyout is open, getDragTarget always returns the flyout. Maybe a better way is to add a priority field to dragTargetAreas?

Test Coverage

Documentation

Additional Information

@zfangqijun zfangqijun requested a review from a team as a code owner July 23, 2024 12:38
@zfangqijun zfangqijun requested a review from cpcallen July 23, 2024 12:38
@github-actions github-actions bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Jul 23, 2024
@BeksOmega BeksOmega requested review from BeksOmega and removed request for cpcallen July 23, 2024 15:37
@BeksOmega BeksOmega assigned BeksOmega and unassigned cpcallen Jul 23, 2024
@BeksOmega BeksOmega requested review from cpcallen and removed request for BeksOmega July 25, 2024 01:20
@BeksOmega BeksOmega assigned cpcallen and unassigned BeksOmega Jul 25, 2024
@zfangqijun
Copy link
Contributor Author

better #8432

@zfangqijun zfangqijun closed this Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to trigger Toolbox's Block delete style
3 participants