From 884befb4b35b9e633f036b5f79b7a56dd6e67c92 Mon Sep 17 00:00:00 2001 From: Lauri Kotilainen Date: Tue, 12 Sep 2017 10:17:32 +0300 Subject: [PATCH] - Set filter from initial value on bind --- dist/amd/typeahead/aubs-typeahead.js | 3 +++ dist/commonjs/typeahead/aubs-typeahead.js | 3 +++ dist/es2015/typeahead/aubs-typeahead.js | 3 +++ dist/system/typeahead/aubs-typeahead.js | 3 +++ src/typeahead/aubs-typeahead.js | 3 +++ 5 files changed, 15 insertions(+) diff --git a/dist/amd/typeahead/aubs-typeahead.js b/dist/amd/typeahead/aubs-typeahead.js index 6163301..bd65ec1 100644 --- a/dist/amd/typeahead/aubs-typeahead.js +++ b/dist/amd/typeahead/aubs-typeahead.js @@ -143,6 +143,9 @@ define(['exports', 'aurelia-framework', '../utils/bootstrap-options'], function this.checkCustomEntry(); this.showClass = _bootstrapOptions.bootstrapOptions.version === 4 ? 'show' : 'open'; + + this.ignoreChange = true; + this.filter = this.value; }; AubsTypeaheadCustomElement.prototype.attached = function attached() { diff --git a/dist/commonjs/typeahead/aubs-typeahead.js b/dist/commonjs/typeahead/aubs-typeahead.js index d7ba250..68c7f5a 100644 --- a/dist/commonjs/typeahead/aubs-typeahead.js +++ b/dist/commonjs/typeahead/aubs-typeahead.js @@ -138,6 +138,9 @@ var AubsTypeaheadCustomElement = exports.AubsTypeaheadCustomElement = (_dec = (0 this.checkCustomEntry(); this.showClass = _bootstrapOptions.bootstrapOptions.version === 4 ? 'show' : 'open'; + + this.ignoreChange = true; + this.filter = this.value; }; AubsTypeaheadCustomElement.prototype.attached = function attached() { diff --git a/dist/es2015/typeahead/aubs-typeahead.js b/dist/es2015/typeahead/aubs-typeahead.js index ebd9335..ce64558 100644 --- a/dist/es2015/typeahead/aubs-typeahead.js +++ b/dist/es2015/typeahead/aubs-typeahead.js @@ -115,6 +115,9 @@ export let AubsTypeaheadCustomElement = (_dec = inject(BindingEngine), _dec2 = b this.checkCustomEntry(); this.showClass = bootstrapOptions.version === 4 ? 'show' : 'open'; + + this.ignoreChange = true; + this.filter = this.value; } attached() { diff --git a/dist/system/typeahead/aubs-typeahead.js b/dist/system/typeahead/aubs-typeahead.js index 7a881ce..ba8148f 100644 --- a/dist/system/typeahead/aubs-typeahead.js +++ b/dist/system/typeahead/aubs-typeahead.js @@ -152,6 +152,9 @@ System.register(['aurelia-framework', '../utils/bootstrap-options'], function (_ this.checkCustomEntry(); this.showClass = bootstrapOptions.version === 4 ? 'show' : 'open'; + + this.ignoreChange = true; + this.filter = this.value; }; AubsTypeaheadCustomElement.prototype.attached = function attached() { diff --git a/src/typeahead/aubs-typeahead.js b/src/typeahead/aubs-typeahead.js index 053b919..79b7948 100644 --- a/src/typeahead/aubs-typeahead.js +++ b/src/typeahead/aubs-typeahead.js @@ -56,6 +56,9 @@ export class AubsTypeaheadCustomElement { this.checkCustomEntry(); this.showClass = bootstrapOptions.version === 4 ? 'show' : 'open'; + + this.ignoreChange = true; + this.filter = this.value; } attached() {