Skip to content

Unable to preventDefault inside passive event listener due to target being treated as passive #433

Closed
@qmonmert

Description

@qmonmert

Describe the bug
In chrome dev tools, I have this error when I drag and drop:
image

image

To Reproduce
html

<div style="width: 100vw; height: 100vh;">
  <as-split direction="vertical" (dragEnd)="dragEnd($event)">
    <as-split-area [size]="sizeTop">
      <h1>TEST 1</h1>
    </as-split-area>
    <as-split-area [size]="sizeBottom">
      <h1>TEST 2</h1>
    </as-split-area>
  </as-split>
</div>

typescript

  dragEnd({ sizes }: any) {
    console.log(sizes);
  }

Is it normal? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions