Skip to content

Commit

Permalink
bug: prefill
Browse files Browse the repository at this point in the history
prefill button visible when prefill attribute is not used
  • Loading branch information
nicolaslabbe committed Oct 18, 2016
1 parent 641f012 commit 139fece
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/cms/editor/handlebars/printInput.js
Expand Up @@ -73,7 +73,8 @@ export default function printInput () {
lastValues = JSON.stringify(params.source).replace(/\'/g, '&quote;')
}
res += '<div class="autocomplete-result-wrapper">'
if(params.autocomplete != null && params.autocomplete === 'true') {
if(params.autocomplete != null && params.autocomplete === 'true'
&& params.prefill === 'true') {
res += `<div class="autocomplete-refresh" value=''
data-autocomplete-refresh="true"
data-autocomplete-refresh-sourcestring="${params.sourceString}"
Expand Down

0 comments on commit 139fece

Please sign in to comment.