Esri / arcgis-experience-builder-sdk-resources

ArcGIS Experience Builder samples
https://developers.arcgis.com/experience-builder/
Apache License 2.0
119 stars 111 forks source link

Control the widget state: openness bug #151

Closed esride-nik closed 8 months ago

esride-nik commented 8 months ago

The openness state prop is set when the widget actively opens or closes another widget within a controller. This fails however, in case

  1. the user changes the widget selection => in this case, the openness prop is not adjusted to the new selection and might reflect a wrong status
  2. the user closes a widget via it's own "X" button or opens/closes a widget via the controller widet

Because of (2), we have to check for openness live when handleToggleOpennessButton()

esride-nik commented 8 months ago

Fixed by pull request #152

shawnmgoulet commented 8 months ago

Close #152