Skip to content

Commit

Permalink
Disable auto focus in visualizations, fix elastic#11856
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Roes committed Aug 28, 2017
1 parent ecd8528 commit d77cf46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
query="state.query"
app-name="'visualize'"
on-submit="updateQuery($query)"
disable-auto-focus="true"
>
</query-bar>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/ui/public/query_bar/directive/query_bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<input
parse-query
input-focus
disable-input-focus="queryBar.disableAutoFocus"
kbn-typeahead-input
ng-model="queryBar.localQuery.query"
placeholder="Search... (e.g. status:200 AND extension:PHP)"
Expand Down Expand Up @@ -40,6 +41,7 @@
<input
ng-model="queryBar.localQuery.query"
input-focus
disable-input-focus="queryBar.disableAutoFocus"
kbn-typeahead-input
placeholder="Search... (e.g. status:200 AND extension:PHP)"
aria-label="Search input"
Expand Down
1 change: 1 addition & 0 deletions src/ui/public/query_bar/directive/query_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.directive('queryBar', function () {
query: '=',
appName: '=?',
onSubmit: '&',
disableAutoFocus: '='
},
controllerAs: 'queryBar',
bindToController: true,
Expand Down

0 comments on commit d77cf46

Please sign in to comment.