* Search on submit * Should be a ul * Fix broken link * No search on change event * Add translation strings * Add role for the 0 results message * Update test with new search behavior * Make search input a controlled component Co-authored-by: Peter Bengtsson <peterbe@github.com> * Trim whitespace in search text Co-authored-by: Peter Bengtsson <peterbe@github.com> * Better variable names Co-authored-by: Peter Bengtsson <peterbe@github.com> * Update visible results count in useEffect * Control the input's value with the typed state Co-authored-by: Peter Bengtsson <peterbe@github.com> * Inline the submit handler Co-authored-by: Peter Bengtsson <peterbe@github.com> Co-authored-by: Peter Bengtsson <peterbe@github.com>
3.8 KiB
3.8 KiB