@kigi/components 1.28.5-alpha → 1.28.6-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kigi/components",
3
- "version": "1.28.5-alpha",
3
+ "version": "1.28.6-alpha",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  <div class="mbg-input-wrapper mb-input-email-wrapper"
2
2
  ng-if="$ctrl.props">
3
3
  <input type="email"
4
- ng-model="$ctrl.inputValue"
4
+ ng-model="$ctrl.ngModel"
5
5
  ng-change="$ctrl.onChange()"
6
6
  ng-required="$ctrl.ngRequired"
7
7
  ng-disabled="$ctrl.ngDisabled"
@@ -40,11 +40,11 @@ class MbgInputEmailController {
40
40
 
41
41
  onChange() {
42
42
  this.$timeout(() => {
43
- if (this.isValidEmail(this.inputValue)) {
44
- this.inputValue = this.inputValue.toLowerCase()
45
- this.ngModel = this.inputValue.toLowerCase()
43
+ if (this.isValidEmail(this.ngModel)) {
44
+ this.ngModel = this.ngModel.toLowerCase()
45
+ this.inputValue = this.ngModel.toLowerCase()
46
46
  } else {
47
- this.ngModel = null
47
+ this.inputValue = null
48
48
  }
49
49
  if (this.ngChange) {
50
50
  this.ngChange({})
@@ -60,7 +60,7 @@ class MbgInputEmailController {
60
60
  /* tslint:enable */
61
61
  }
62
62
  }
63
- MbgInputEmailController.$inject = ['$scope', '$element', '$attrs', '$timeout']
63
+ MbgInputEmailController['$inject'] = ['$scope', '$element', '$attrs', '$timeout']
64
64
 
65
65
  const mbgInputEmail = {
66
66
  bindings: {