Open
Description
Feature Description
Currently, when using matSelectHarness.getOptions()
, an empty array is returned if the matSelectHarness.open()
method is not called beforehand. This can be confusing for users, who may not realize they need to call matSelectHarness.open()
first.
To improve the user experience, I suggest adding an error message similar to what is done in matAutoCompleteHarness
, so that if getOptions()
is called before open()
, an error will be thrown informing the user to call open()
first.
This change would save users time and frustration by providing immediate feedback on what they need to do to correctly use the getOptions()
method.
matAutoComplete implementation:
I can make a PR for it :)
Thanks.