Use Selection Tags element with one option at a time without having to unclick the option?

@russian-dima Hi, I am also having the same issue where I’m still seeing content from the previous tag selection. I haven’t used Wix-UI for the dataset (as far as im aware) here is my current code:

import wixData from 'wix-data';

const collectionName = 'AllGames';
const fieldToFilterByInCollection = 'gameType';


$w.onReady(function () {

    setRepeatedItemsInRepeater();
    loadDataToRepeater();

    $w('#gametags').onChange((event) => {
 const selectedTags = $w('#gametags').value;
        loadDataToRepeater(selectedTags);
    })
});

function loadDataToRepeater(selectedCategories = []) {

 let dataQuery = wixData.query(collectionName);

 if (selectedCategories.length > 0) {
        dataQuery = dataQuery.hasSome(fieldToFilterByInCollection, selectedCategories);
    }

    dataQuery
        .find()
        .then(results => {
 const itemsReadyForRepeater = results.items;
            $w('#allgamerepeater').data = itemsReadyForRepeater;
 const isRepeaterEmpty = itemsReadyForRepeater.length === 0

 if (isRepeaterEmpty) {
                $w('#noResultsFound').show();
            } else {
                $w('#noResultsFound').hide();
            }
        })
}
 
function setRepeatedItemsInRepeater() {
 
    $w('#allgamerepeater').onItemReady(($item, itemData) => {
        $item('#text153').text =itemData.title;
        $item('#image14').src = itemData.image;
        $item('#image14').tooltip = itemData.title;
    })
}

$w.onReady(function () {
 
    $w('#gametags').onChange(()=>{
 let VALUE = $w('#gametags').value
 let LENGTH = VALUE.length

        console.log(LENGTH)

 for (var i = 0; i < LENGTH-1; i++) {
 if(LENGTH>1) {
                VALUE.shift()
 
            }
 else{   }
            }
            console.log(VALUE)

        setTimeout(()=>{
            $w('#gametags').value = []
            $w('#gametags').value = VALUE
        },1)
    })
});

Any thoughts on where I’ve gone wrong would be greatly appreciated.