Skip to content

Commit

Permalink
Fix #1558
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Jun 23, 2020
1 parent 64ea24e commit 116d800
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/vendor/vue/vue-autocomplete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@
.vue-autocomplete ul:hover {
display: block;
}

.vue-autocomplete-empty-list {
min-width: auto !important;
}
4 changes: 3 additions & 1 deletion app/javascript/vue/components/autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ Parameters:
</li>
<li v-if="json.length == 20">Results may be truncated</li>
</ul>
<ul v-if="type && searchEnd && !json.length">
<ul
v-if="type && searchEnd && !json.length"
class="vue-autocomplete-empty-list">
<li>--None--</li>
</ul>
</div>
Expand Down

0 comments on commit 116d800

Please sign in to comment.