Skip to content

Items filtering in Sidebar #3585

Answered by serifluous
deeleman asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @deeleman !

  1. Is there any way we can subscribe to the search event in an <Input type="search" /> component in Paste?

After some digging, it looks like the search event is non-standard according to MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/search_event , so your implementation may just be the way to go for now.

  1. We tried to abide to the content foundations for the placeholder copywriting. Any suggestions to improve it?

For any inputs that aren't search, we recommend using a Label instead of relying only on placeholder since the placeholder disappears when text is entered. The reason is that a search bar with the search icon is a widely used UI element…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nkrantz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants