Skip to content

onValid trigger fail #93

@lizyChy0329

Description

@lizyChy0329

Describe the bug
Drag the piece can not trigger onValid function but onDisconnect

To Reproduce
Let's us see the Screenshots

Expected behavior
trigger onValid function

Screenshots
GIF 2024-9-19 12-06-13

Desktop (please complete the following information):

  • OS: windows 10
  • Browser chrome: 128
  • Version latest

Smartphone (please complete the following information):

  • Device: iPhone15
  • OS: IOS 17
  • Browser Chrome
  • Version latest

Additional context
My solution is: add condition in onConnect

if (_piece?.puzzle?.valid) xxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions