@pocketprep/ui-kit 3.0.19 → 3.0.21

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.
@@ -218,7 +218,7 @@ export default class Select extends Vue {
218
218
  if (this.typeahead && !this.searchText) {
219
219
  this.emitUpdateModelValue(null)
220
220
  }
221
- if (this.typeahead && this.searchText && this.filteredData.length !== 1) {
221
+ if (this.typeahead && this.searchText && this.filteredData.length < 1) {
222
222
  this.emitUpdateModelValue(null)
223
223
  this.searchText = ''
224
224
  } else if (this.typeahead && this.searchText && this.filteredData[0]) {
@@ -28,6 +28,7 @@
28
28
  }"
29
29
  :disabled="modelValue.length !== 6 || isLoading"
30
30
  :autofocus="modelValue.length === 6"
31
+ :isLoading="isLoading"
31
32
  @click="submitSignIn"
32
33
  >
33
34
  Sign In
@@ -60,6 +61,7 @@ import MagicCodeEntry from '../Onboarding/MagicCodeEntry.vue'
60
61
  })
61
62
  export default class EmailAuth extends Vue {
62
63
  @Prop({ default: '' }) parentError!: string
64
+ @Prop({ default: false }) parentIsLoading!: boolean
63
65
  @Prop() email!: string
64
66
  @Prop({ default: '' }) modelValue!: string
65
67
 
@@ -75,6 +77,13 @@ export default class EmailAuth extends Vue {
75
77
  }
76
78
  }
77
79
 
80
+ @Watch('parentIsLoading')
81
+ parentIsLoadingChanged (newVal: boolean, oldVal: boolean) {
82
+ if (newVal !== oldVal) {
83
+ this.isLoading = newVal
84
+ }
85
+ }
86
+
78
87
  async submitSignIn () {
79
88
  this.isLoading = true
80
89
  this.errorMessage = ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.0.19",
3
+ "version": "3.0.21",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {