The userSelectAction
change doesn't lead to selection state re-evaluation
#493
Labels
bug
Something isn't working
Issue behavior
The selection state evaluation is based on the
currentUserSelectAction
to assign whether an annotation is editable.annotorious/packages/annotorious-core/src/state/Selection.ts
Lines 79 to 89 in 94624c0
annotorious/packages/annotorious-core/src/state/Selection.ts
Lines 103 to 106 in 94624c0
However, when a consumer changes the
userSelectionAction
, the selection state won't be updated respectively:annotorious/packages/annotorious-core/src/state/Selection.ts
Lines 128 to 129 in 94624c0
That way, a user can create an "impossible" state where the
userSelectAction
isSELECT
orNONE
, but both theselected
is present and theeditable
istrue
.The text was updated successfully, but these errors were encountered: