Fix sticker example. (#4172)
Stickers didn't stick since they were binding to themselves. Fixes #3982 ### Change type - [x] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [ ] `other` ### Test plan 1. Use the sticker example 2. The sticker should stick 😄 ### Release notes - Fix the sticker example.
This commit is contained in:
parent
01bc73e750
commit
fe3dc0d965
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ class StickerShapeUtil extends ShapeUtil<StickerShape> {
|
|||
const target = this.editor.getShapeAtPoint(pageAnchor, {
|
||||
hitInside: true,
|
||||
filter: (shape) =>
|
||||
shape.id !== sticker.id &&
|
||||
this.editor.canBindShapes({ fromShape: sticker, toShape: shape, binding: 'sticker' }),
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue