You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Per the docs, invoking select/set API on an area will not honor staticState value. This is true when it comes to the 'selected' state of an area obtained via get API.
When staticState === true, calling get will not return the area unless select/set was called on that area to select it. Similarly, deslecting via select/set will result in the area no longer being returned from get.
However, when deselecting via select/set, the Area is still visually selected (e.g. fill/stroke/etc.) if the staticState === true.
Conversely, when staticState === false, API calls properly set get result AND update UI visually accordingly.
This inconsistency should be addressed and based on docs, the situation with staticState === true should be fixed to behave the same as staticState === false.
In short, the following fix should be made:
When staticState is true
If select/set has been called, visual & selected state (via get) should reflect the last value set via the API
Click on "Select Paul" - selected keys include paul
Click on "Deselect Paul" - Paul remains visibly selected but selected keys is empty
Click on "Select Ringo" - selected keys include ringo & ringo is visually selected
Click on "Deselect Ringo" - selected keys is empty & ringo is NOT visually selected
Expected behavior
When staticState === true, "UI representations of selected" should match API value set after the first time the API is used just as staticState === false does.
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
Per the docs, invoking
select
/set
API on an area will not honor staticState value. This is true when it comes to the 'selected' state of an area obtained viaget
API.When
staticState === true
, callingget
will not return the area unlessselect
/set
was called on that area toselect
it. Similarly, deslecting viaselect
/set
will result in the area no longer being returned fromget
.However, when
deselecting
viaselect
/set
, the Area is still visually selected (e.g. fill/stroke/etc.) if the staticState ===true
.Conversely, when
staticState === false
, API calls properly setget
result AND update UI visually accordingly.This inconsistency should be addressed and based on docs, the situation with
staticState === true
should be fixed to behave the same asstaticState === false
.In short, the following fix should be made:
true
select
/set
has been called, visual & selected state (viaget
) should reflect the last valueset
via the APITo Reproduce
Steps to reproduce the behavior:
Expected behavior
When
staticState === true
, "UI representations of selected" should match API value set after the first time the API is used just asstaticState === false
does.Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: