# Search input value "lost" after clicking options

**URL:** https://meta.discourse.org/t/search-input-value-lost-after-clicking-options/51988
**Category:** Bug
**Created:** [October 25, 2016, 12:44am UTC](https://meta.discourse.org/t/search-input-value-lost-after-clicking-options/51988 "2016-10-25T00:44:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [October 25, 2016, 12:44am UTC](https://meta.discourse.org/t/search-input-value-lost-after-clicking-options/51988/1 "2016-10-25T00:44:03Z")

</div>

[https://github.com/discourse/discourse/pull/4490](https://github.com/discourse/discourse/pull/4490)

@cpradio This change appears to break user flow.

## Steps to Reproduce

1. From topic list, select search button
2. Type `foo bar` into search input box
3. Click “options” link below search input box

## Expected Result

The search pattern value `foo bar` already entered in the input box is passed to the advanced search page that opens.

## Actual Result

User input value `foo bar` is “lost”, search input field on advanced search page is empty.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 25, 2016, 1:36am UTC](https://meta.discourse.org/t/search-input-value-lost-after-clicking-options/51988/2 "2016-10-25T01:36:55Z")

</div>

This would be a nice enhancement @neil

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 25, 2016, 2:08am UTC](https://meta.discourse.org/t/search-input-value-lost-after-clicking-options/51988/3 "2016-10-25T02:08:32Z")

</div>

> [@codinghorror](#):
>
> This would be a nice enhancement

I personally wouldn’t consider this an enhancement - but a bug fix. This was the behavior prior to the new advanced search UI - on-page search shared the input with full page search.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [October 25, 2016, 3:48am UTC](https://meta.discourse.org/t/search-input-value-lost-after-clicking-options/51988/4 "2016-10-25T03:48:56Z")

</div>

This is simple enough.

[https://github.com/discourse/discourse/commit/adfd9733c6475f6e1a5da68c1c60b9a9f798c3f0](https://github.com/discourse/discourse/commit/adfd9733c6475f6e1a5da68c1c60b9a9f798c3f0)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [October 26, 2016, 3:49am UTC](https://meta.discourse.org/t/search-input-value-lost-after-clicking-options/51988/5 "2016-10-26T03:49:46Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
