fix(editor): zone handles remount per annotation so a row tap lands the focus
This commit is contained in:
1 parent
6ad378b08b
commit
f5a6eafc7f
4 files changed
+12
-6
No files matched your search
@@ -1403,8 +1403,11 @@ describe('Safari: the focus after a press that commits a pending series', () =>
|
||||
})
|
||||
|
||||
it('a press on another annotation row commits with the focus kept, then focuses the row', async () => {
|
||||
// A point has no vertex handle: selecting it unmounts the focused vertex.
|
||||
const other = insert(squareText(), point('y', 50, 50, 1))
|
||||
// Handles are per annotation: the focused vertex does not carry over to the other polygon.
|
||||
const other = withZone(squareText(), 'y', {
|
||||
type: 'polygon',
|
||||
points: SQUARE,
|
||||
})
|
||||
await mount(other)
|
||||
await select()
|
||||
clickHandle('Sommet 1 de N', [20, 20])
|
||||
|
||||
Reference in new issue
Block a user