nuxt-glorious 1.2.9-9-0 → 1.2.9-9-2

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.2.9-9-0"
4
+ "version": "1.2.9-9-2"
5
5
  }
@@ -72,7 +72,14 @@ const addTag = (event: any) => {
72
72
 
73
73
  const addTagViaOption = (option: any, event: any) => {
74
74
  // event.stopPropagation() if want not close with window
75
- if (tags.value.length === 0) tags.value = []
75
+ console.log(typeof tags.value)
76
+
77
+ if (
78
+ typeof tags.value === 'string' ||
79
+ typeof tags.value === 'undefined' ||
80
+ tags.value.length === 0
81
+ )
82
+ tags.value = []
76
83
 
77
84
  const value: any = option
78
85
  tags.value.push(value)
@@ -195,7 +202,7 @@ const inputClicked = (event: any) => {
195
202
  v-for="(item, index) in tags"
196
203
  :key="index"
197
204
  >
198
- {{ typeof item === 'object' ? item.text : item }}
205
+ {{ typeof item === 'object' ? item[props.displayTextKey] : item }}
199
206
  <GIcon
200
207
  name="glorious-x"
201
208
  :size="10"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.9-9-0",
2
+ "version": "1.2.9-9-2",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",