[ic-search-bar] props not working as expected
Summary of the bug
When checking search bar against the PR checklist, I noticed that spell check and auto focus didn't work as expected.
🪜 How to reproduce
Tell us the steps to reproduce the problem:
- On the search bar playground turn on spellcheck
- Try typing something wrong - see that there are no red lines
- Turn on autofocus
- See that focus isn't given to the component
📸 Screenshots or code
Example of the html input with spell check
Search bar with spell check
🧐 Expected behaviour
The props should work where red lines appear for spell check and the component is focused on page load for autofocus.
Additional info
We have a focusOnLoad prop that works correctly and focuses the component on load, but autofocus doesn't work (do we just need to do the same thing for both of these props?)
Is spell check on Text field working too?
Is this a quirk of Storybook or the specific browser, explore if this is the case in this ticket. Instead, check this behaviour on a form
Works in stackblitz, not in Storybook
We've got a Cypress test for spellcheck, but not autofocus
spell check works. would not expect autofocus to work in storybook as it is only applied on page load. closing