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
I was making use of a box zone through addBoxZone export that had options that would control the state of other options such as:
Option 1. Allow Feature X
Option 2. Disable Feature X
using canInteract to only show allow when its disabled and vice versa to emulate toggling an option.
(If there is supported way of using an option as a toggle with a dynamic label, please let me know but it didn't look like it).
Expected outcome
I would expect that when clicking "Allow Feature X" it is then hidden and replaced with "Disable Feature X"
Actual outcome
Nothing happens, the option is selected and the attached functionality runs but the shown options aren't refreshed.
Potential fix
I've dug around the codebase and I've noticed there is builtin checks for shouldHide for nearbyZones and when debugging those changes are applied it's just the menu that is not refreshed.
newOptions gets set to true.
This logic block seems to control if the options should be refreshed or not:
Overview
I was making use of a box zone through
addBoxZone
export that had options that would control the state of other options such as:Option 1. Allow Feature X
Option 2. Disable Feature X
using
canInteract
to only show allow when its disabled and vice versa to emulate toggling an option.(If there is supported way of using an option as a toggle with a dynamic label, please let me know but it didn't look like it).
Expected outcome
I would expect that when clicking "Allow Feature X" it is then hidden and replaced with "Disable Feature X"
Actual outcome
Nothing happens, the option is selected and the attached functionality runs but the shown options aren't refreshed.
Potential fix
I've dug around the codebase and I've noticed there is builtin checks for
shouldHide
fornearbyZones
and when debugging those changes are applied it's just the menu that is not refreshed.newOptions
gets set totrue
.This logic block seems to control if the options should be refreshed or not:
Go to
Which only checks the home menu? or the "main" options and not the zones.
I've made this change locally and it has resolved my problem but has not been tested further than that:
Where only total visible options are taken into account, as we don't want to refresh if there is nothing to show.
The text was updated successfully, but these errors were encountered: