Page MenuHomePhabricator

VisualEditor: Clear the previous search term while opening the "Use an existing reference" and "Insert Media" dialog again
Closed, ResolvedPublic

Description

Use Existing reference dialog box

Steps to reproduce:

1.Open a page with VE
2.Go to Insert>Reference >Use an existing reference
3.Type a search term in the search box
4.Select a reference from the search result.
5.Now again attempt to add another existing reference

Observed Result:
When the page of existing references opens up it still keeps the search term from previous attempt and shows the search results , it should rather clear the previous search term and let user to start over.
This issue also occurs for new media adding dialog

See the screenshots attached.

Test Environment: https://test2.wikipedia.org/
Browser: Chrome Version 26.0.1410.65 & FF 25
OS: MAC OS X 10. 8. 5
Page:http://en.wikipedia.beta.wmflabs.org/wiki/24thfebchrome?veaction=edit


Version: unspecified
Severity: minor

Attached:

Screen_Shot_2014-02-26_at_12.40.19_PM.png (652×1 px, 125 KB)

Details

Reference
bz61959