top of page

Forum Posts

Thomas Vermeersch
Aug 12, 2021
In Coding with Velo
I am making a custom search bar for the header of my site. When there are search results, I try to display a container with a repeater inside containing the search results. Displaying of this container goes without problems, however when I try to hide the search result container, the container disappears first and the repeater contained inside after about half a second later... Does a solution or workaround exist for this problem? I already tried to collapse it first but this just looks weird. There are no adjustments or hover effects present on the container or repeater. This also happens regardless of adding the 'fade' effect to the hide function or not. This is the code I use to show / hide the container. const fadeOptions={ "duration":300, "delay":0} $searchBarInput.onInput((e) => { if (e.target.value.length !== 0) { $cancelSearch.show('fade', fadeOptions) } else { $cancelSearch.hide('fade', fadeOptions) } if (e.target.value.length > 1) { //show the container containing the repeater $searchResultsContainer.show('fade', fadeOptions); //set the data of the repeater $searchResults.data = filterModels(query, e.target.value); } else { //hide the container, containing the repeteater wich hides with a delay $searchResultsContainer.hide('fade', fadeOptions); } }) Here is a video of the effect in question.
Repeater delayed hiding content media
0
2
37
Thomas Vermeersch
Jul 08, 2021
In Coding with Velo
I am trying to cache an access token obtained from an oauth2 flow. I would like to do this with the wix secrets api. I try to use the update() function from the wixSecrectsBackend but I read that this function needs wix members activated. This function also only seems to work when i am logged in with an admin user on the live site. If I am not logged in with an admin user, it gives me a 403 error. Some side info, I am calling this function from the backend, the backend should be allowed to call such functions shouldn't it?
1
13
126

Thomas Vermeersch

More actions
bottom of page