Forum

Thread tagged as: Problem

Select menu's returning to default

Hi,

I'm not sure if I've found a bug in the latest Perch install where select menu items keep returning back to the first option in the list. The code it outputs is fine, but every time you go back to edit the region the list is back to the first option. My code is below for the select menu:

<perch:content id="icon" type="select" label="Icon" options="Clients| --clients, Candidates| --candidates, Vacancies| --vacancies" allowempty="false" required="true" />

I've tried it on a few other menu's and it's happening everywhere. I'm using Perch 2.8.23.

Cheers, Lea.

Lea Chapman

Lea Chapman 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think it's a spacing issue in your options:

<perch:content id="icon" type="select" label="Icon" options="Clients|--clients, Candidates|--candidates, Vacancies|--vacancies" allowempty="false" required="true" />

Thanks as ever Drew - was a result of me trying to keep the outputted code clean. All fixed.

Drew McLellan

Drew McLellan 2638 points
Perch Support

It shouldn't affect the output at all.