Open GCHQ-Developer-530 opened 4 months ago
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
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:
📸 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?)