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

Selecting then deselecting a polyline without editing throws an exception #1

Open
graphics-et-al opened this issue May 9, 2021 · 0 comments

Comments

@graphics-et-al
Copy link

Selecting then deselecting a polyline throws an error.
To reproduce:

  1. Make a polyline, e.g.
    let arrow = new fabric.Polyline([{
    x: 200,
    y: 10
    }, {
    x: 250,
    y: 50
    }], {

                     stroke: 'green'
                 });
                 canvas.add(arrow).renderAll()
    
  2. Select the line (click on it)

  3. deselect the line by clicking somewhere else.

Expected: deselecting the line

Got: fabric-extensions.umd.js:2133 Uncaught TypeError: Cannot read property 'right' of undefined

image
image

Note that this behaviour does not show after double clicking on the line/entering then exiting editing mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant