From 4f2c53a8cf82f36f69da2091aaf1218a35b749d1 Mon Sep 17 00:00:00 2001 From: Matthew Richardson Date: Wed, 15 May 2024 10:45:38 +0100 Subject: [PATCH] Update AutoComplete to use ignored data. --- package.json | 2 +- src/components/fields/AutocompleteInput.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 443695d..9e443bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@uoe-eng/tabularasa", - "version": "1.33.0", + "version": "1.33.1", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build --target lib --name tabularasa src/index.js", diff --git a/src/components/fields/AutocompleteInput.vue b/src/components/fields/AutocompleteInput.vue index 0274ba5..79c2eb7 100644 --- a/src/components/fields/AutocompleteInput.vue +++ b/src/components/fields/AutocompleteInput.vue @@ -67,7 +67,12 @@ export default { let onComplete = async (query) => { if ('onComplete' in props.methods.value) { // Use await as method might return a promise/be async - suggestions.value = await props.methods.value.onComplete(query.query, props.item.value, props.newItem.value) + suggestions.value = await props.methods.value.onComplete( + query.query, + props.item.value, + props.newItem.value, + props.ignored.value + ) } else { // Blank the suggestions, as if not modified the AC ui 'blocks' forever. suggestions.value = []