# Bug: Cannot submit search form before suggestions are loaded

**URL:** https://talk.observablehq.com/t/bug-cannot-submit-search-form-before-suggestions-are-loaded/2205
**Category:** Feedback
**Created:** [July 25, 2019, 2:32pm UTC](https://talk.observablehq.com/t/bug-cannot-submit-search-form-before-suggestions-are-loaded/2205 "2019-07-25T14:32:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)
#### Post date: [July 25, 2019, 2:32pm UTC](https://talk.observablehq.com/t/bug-cannot-submit-search-form-before-suggestions-are-loaded/2205/1 "2019-07-25T14:32:40Z")

</div>

Steps:

- Focus search box and enter search phrase (e.g. “test”), followed by hitting enter

Expected result:

- After pressing enter I am redirected to the search result page.

Actual result:

- Pressing enter before suggestions start loading: no effect
- Pressing enter while suggestions load: closes suggestions, second enter inputs have no effect

---

<div class="post-metadata">

### Author: ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)
#### Post date: [July 25, 2019, 2:39pm UTC](https://talk.observablehq.com/t/bug-cannot-submit-search-form-before-suggestions-are-loaded/2205/2 "2019-07-25T14:39:39Z")

</div>

Related (not sure if this is intentional): If the search box has focus the suggestions will close if the tab loses focus. Refocusing the tab will reload the suggestions.

 ![09](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/9/9ce64aa54b997d5a8451f0699480a95d72b711fd.gif)

---

<div class="post-metadata">

### Author: ![mbostock](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mbostock/32/9_2.png) [@mbostock](https://talk.observablehq.com/u/mbostock)
#### Post date: [July 25, 2019, 3:42pm UTC](https://talk.observablehq.com/t/bug-cannot-submit-search-form-before-suggestions-are-loaded/2205/3 "2019-07-25T15:42:40Z")

</div>

I recently filed an issue for the first problem, and I’ve filed a new issue for the second. Thanks for the report.
