Can you programmatically reset the resultList, regardless of input value? #393
Unanswered
tylerkershnerppfa
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all! I would like to manually trigger my
resultList
to be reset back to its default/initial state, which is the full list of results.The ideal flow I'm imagining is the following:
resultList
is shown with the full/unfiltered list of resultsresultList
is filtered as they typeIt's at this point that I would like the have the
resultList
completely reset back to its initial state (with the full list) so that when the user next clicks the input, it'll show the entire list instead of what's currently matching the input value.I've achieved this in a somewhat roundabout way by setting the input's value to
''
and then programmatically triggering theinput
event. This resets the list, but it focuses the input and opens theresultList
, which I'd like to avoid if possible.Please let me know if I can be more clear!
Beta Was this translation helpful? Give feedback.
All reactions