Fix adding CCs

Somehow the gr-autocomplete for CCs was not aware that it should allow
non suggested values. Pass the necessary property (allowAnyInput) from
gr-account-list to gr-account-entry and then to the autocomplete.

Bug: Issue 7802
Change-Id: Idd9533ef409fde97ebcfb15a349108d1f314fc38
This commit is contained in:
Becky Siegel 2017-11-20 13:55:47 -08:00
parent 4ee4fc62ce
commit ddbfb0f10a
3 changed files with 5 additions and 1 deletions

View File

@ -35,6 +35,7 @@ limitations under the License.
placeholder="[[placeholder]]"
threshold="[[suggestFrom]]"
query="[[query]]"
allow-non-suggested-values="[[allowAnyInput]]"
on-commit="_handleInputCommit"
clear-on-commit
warn-uncommitted>

View File

@ -23,9 +23,9 @@
* @event add
*/
properties: {
allowAnyInput: Boolean,
borderless: Boolean,
change: Object,
_config: Object,
filter: Function,
placeholder: String,
/**
@ -51,6 +51,8 @@
return this._getReviewerSuggestions.bind(this);
},
},
_config: Object,
},
behaviors: [

View File

@ -69,6 +69,7 @@ limitations under the License.
placeholder="[[placeholder]]"
on-add="_handleAdd"
on-input-keydown="_handleInputKeydown"
allow-any-input="[[allowAnyInput]]"
allow-any-user="[[allowAnyUser]]">
</gr-account-entry>
</template>