Hi,
I’ve recently noticed the dropdown colours are not changing based on the selected value.
Sample code below.
title: report
type: jig.default
datasources:
answers:
type: datasource.static
options:
data:
- id: 1
name: "Yes"
- id: 2
name: "No"
- id: 3
name: "Maybe"
children:
- type: component.form
instanceId: frm
options:
children:
- type: component.dropdown
instanceId: hazards
options:
color:
- when: =(@ctx.components.hazards.state.value = "Yes")
color: color2
- when: =(@ctx.components.hazards.state.value = "No")
color: color4
- when: =(@ctx.components.hazards.state.value = "Maybe")
color: color7
label: "Hazards?"
data: =@ctx.datasources.answers
item:
type: component.dropdown-item
options:
title: =@ctx.current.item.name
value: =@ctx.current.item.name
Any ideas?
Thanks,
Adam.