This toolkit helps create well-designed Power App experiences on the web & mobile. It contains a component library; PCF controls and other utilities that increase developer productivity.
MIT License
296
stars
49
forks
source link
[BUG]: SubwayNav Control display mode does not affect child items #460
Describe the bug
When the display mode of a SubwayNav Control is set to Disabled, it is no longer possible to select the top level items - which is expected. However, it is still possible to select the child items and therefore change the state of the control.
To Reproduce
Steps to reproduce the behavior:
Add a SubwayNav Control to your Application
Set its items property to something like Table({ItemKey:"toplevel1",ItemLabel:"Top Level 1",ItemState:"CurrentWithSubsteps"},{ItemKey:"child1",ItemLabel:"Child 1",ItemState:"Current",ParentItemKey:"toplevel1"},{ItemKey:"child2",ItemLabel:"Child 2",ParentItemKey:"toplevel1"},{ItemKey:"toplevel2",ItemLabel:"Top Level 2"})
Set the display mode to DisplayMode.Disabled
observe how it is no longer possible to select the top level items but still possible to switch between the two child items
Expected behavior
If the SubwayNav Control is in disabled mode (or view, I do not quite understand why it stays interactive in view mode but that is another problem I guess) no part of the control should be selectable.
Describe the bug When the display mode of a SubwayNav Control is set to
Disabled
, it is no longer possible to select the top level items - which is expected. However, it is still possible to select the child items and therefore change the state of the control.To Reproduce Steps to reproduce the behavior:
Table({ItemKey:"toplevel1",ItemLabel:"Top Level 1",ItemState:"CurrentWithSubsteps"},{ItemKey:"child1",ItemLabel:"Child 1",ItemState:"Current",ParentItemKey:"toplevel1"},{ItemKey:"child2",ItemLabel:"Child 2",ParentItemKey:"toplevel1"},{ItemKey:"toplevel2",ItemLabel:"Top Level 2"})
DisplayMode.Disabled
Expected behavior If the SubwayNav Control is in disabled mode (or view, I do not quite understand why it stays interactive in view mode but that is another problem I guess) no part of the control should be selectable.
AB#2948