For some reason, when using Smart Select with JSX, the item will not select upon evaluation.
What am i doing inccorectly?
Thanks!
This is invalid code you have:
${[1,2,3].map((v,i) => $h`
<option value="${v}" ${v==3?`selected`:``} >${v==3?`Shows Here!?!`:v}</option>
`)}
it must be:
${[1,2,3].map((v,i) => $h`
<option value="${v}" selected=${v === 3}>${v==3?`Shows Here!?!`:v}</option>
`)}
You’re the best! thank you!!!