Skip to content

Commit

Permalink
toggle back to the basic search when the layer uses the FindTask.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgee committed Jul 1, 2017
1 parent b1fd997 commit 473d91b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions widgets/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,9 @@ define([

// hide Advanced Search for FindTasks
domStyle.set(this.queryAdvancedSearchButtonsDom, 'display', ((layer.findOptions) ? 'none' : 'block'));
if (layer.findOptions) {
this.toggleAdvancedSearch(false);
}

// put focus on the first input field
var input = registry.byId(search.inputIds[0]);
Expand Down

0 comments on commit 473d91b

Please sign in to comment.