goodteditor-ui 1.0.79 → 1.0.80
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
|
@@ -198,6 +198,14 @@ export default {
|
|
|
198
198
|
useClearBtn: {
|
|
199
199
|
type: Boolean,
|
|
200
200
|
default: false
|
|
201
|
+
},
|
|
202
|
+
/**
|
|
203
|
+
* Hide options popover on user input match
|
|
204
|
+
* single element suggested options list item value
|
|
205
|
+
*/
|
|
206
|
+
hideOnMatch: {
|
|
207
|
+
type: Boolean,
|
|
208
|
+
default: false
|
|
201
209
|
}
|
|
202
210
|
},
|
|
203
211
|
data() {
|
|
@@ -269,6 +277,9 @@ export default {
|
|
|
269
277
|
.then((arr) => {
|
|
270
278
|
this.suggestedOptions = arr;
|
|
271
279
|
this.dataListCursorIndex = -1;
|
|
280
|
+
if (this.hideOnMatch && arr.length === 1 && arr[0] === val) {
|
|
281
|
+
this.popoverShow = false;
|
|
282
|
+
}
|
|
272
283
|
})
|
|
273
284
|
.finally(() => (this.loading = false));
|
|
274
285
|
},
|