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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all! I would like to manually trigger my
resultListto be reset back to its default/initial state, which is the full list of results.The ideal flow I'm imagining is the following:
resultListis shown with the full/unfiltered list of resultsresultListis filtered as they typeIt's at this point that I would like the have the
resultListcompletely 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 theinputevent. 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