This is a slight refactor to help clarify the flow of the search-bar component and how it works. It was previously relying on dispatching the submit event to initialize the search when the component was connected, but this allows it to do so in a more typical non-event bus driven way.
It also moves certain things into their own methods like the search event dispatch and the layout change. This makes it easier to read the flow of the handle search routine.
This PR should not result in any change of behavior, with or without reduced motion.
This is a slight refactor to help clarify the flow of the search-bar component and how it works. It was previously relying on dispatching the submit event to initialize the search when the component was connected, but this allows it to do so in a more typical non-event bus driven way.
It also moves certain things into their own methods like the search event dispatch and the layout change. This makes it easier to read the flow of the handle search routine.
This PR should not result in any change of behavior, with or without reduced motion.