Closed jordanchang closed 2 years ago
@jordanjones243 can you take a look at this?
@jordanchang I have investigated this issue within the code of auro-menu
. I tested the resetOptionsStates()
function and it seems to be working as expected.
The this.items is undefined
error being thrown is due to the fact that this.items
is initialized with all existing auro-menuoption
elements, which makes me believe it could have something to do with your implementation.
After further investigation, this error was being thrown because the resetOptionsStates()
was being called on this.items
when there was no menu options in an auro-menu
.
This issue will be closed and a new issue will be opened to reference the root bug:
Describe the bug
As a developer, I want to allow our users to clear all options in an auro-menu. Per the doc, there is a method called resetOptionsStates(), but I couldn't get it to work.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should clear all options
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
I'm basically looking for guidance on how to clear all options.