Skip to content

Commit

Permalink
Update AutoComplete to use ignored data.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrichar1 committed May 15, 2024
1 parent 1174a0d commit 4f2c53a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 6 additions & 1 deletion src/components/fields/AutocompleteInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 4f2c53a

Please sign in to comment.