classcard-ui 0.2.181 → 0.2.185

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": "classcard-ui",
3
- "version": "0.2.181",
3
+ "version": "0.2.185",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -30,6 +30,11 @@
30
30
  </svg>
31
31
  </span>
32
32
  </template>
33
+ <!-- eslint-disable-next-line vue/no-unused-vars -->
34
+ <template #no-options="{ search, searching, loading }">
35
+ <span v-if="search.length < 1">Start typing to search for options...</span>
36
+ <span v-else>No options found, try searching something else.</span>
37
+ </template>
33
38
  <template slot="option" slot-scope="option">
34
39
  <slot name="custom-option" v-bind:option="option"></slot>
35
40
  </template>
@@ -181,7 +181,7 @@ export default {
181
181
  data() {
182
182
  return {
183
183
  toggleDropdown: false,
184
- selectedValue: this.value ? this.value || this.value.option : "",
184
+ selectedValue: this.value !== null && this.value.option ? this.value.option : this.value,
185
185
  showSelectedValue: false,
186
186
  showFocus: false,
187
187
  };
@@ -211,9 +211,6 @@ export default {
211
211
  this.toggleDropdown = false;
212
212
  this.type === "tertiary" ? (this.showFocus = false) : "";
213
213
  },
214
- clickTest() {
215
- this.selectedValue = null;
216
- },
217
214
  },
218
215
  watch: {
219
216
  value() {