I created a drop-down search with a table. The input is in the header. It works great on the first page but when switching pages I get a loading screen on the table. This seems to be an issue when a table is in the header/shown on all pages.
First Page or if I refresh the page:
If I change pages:
Here is my Code:
import wixData from 'wix-data';
export function input2_click(event) {
$w('#Dropdown').show();
}
export function input2_keyPress(event) {
$w("#dataset3").setFilter(wixData.filter()
.contains("title", $w("#input2").value));
}
export function Dropdown_mouseOut(event) {
$w('#Dropdown').hide();
}
Any help is greatly appreciated.
To add to Aleks reply above, try checking your dataset permissions as well and make sure that they are set to 'Anyone' as some other users have had similar issues and the dataset being used was set as 'Admin' or Site Members' etc.
https://support.wix.com/en/article/working-with-dataset-modes-and-collection-permissions
Once the dataset was changed to 'Anyone' the issue was gone, although yours might not be connected, it can just be a similar issue.
If this doesn't solve the issue, then please carry on through Wix Support.
Thank you, I have contacted customer care.
Hi,
Your code seems fine and shouldn't affect the table as it only filters the dataset and hides/shows the dropdown.
The issue seems to be related to the work of the table element, as the first page displays correctly but not the others.
I'd recommend contacting Wix Customer Care here. Include all the details about the issue, such as the page where it occurs, clear description and a screenshot or a screencast if possible.