Hi Helena,
We identified the problem and are working on a fix, although I cannot provide a deadline for that.
The bug only affects click handlers that were added using the “onClick” API.
If you add a click handler through the “biobutton” properties panel (same as you did for the close button) it will work. Meaning you need to do 2 things:
- Add a click event using the properties panel and put your wix data logic there
- Remove the current onClick code.
Eventually your code should look something like this:
import wixData from 'wix-data';
$w.onReady(function () {
})
export function closebutton_click(event, $w) {
$w("#textgroup").hide();
}
export function biobutton_click(event, $w) {
const bio = await wixData.get('Team', event.context.itemId)
$w('#textgroup').show();
}
Don’t copy paste the code above - use the properties panel to add the new click event.
Regarding the spacing, it shouldn’t be related, but it’s best to open a new forum post for that and paste a screenshot there.
Let me know if the above suggestion works. Thanks!