JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › ComboBox › assigning hidden values to combo box elements › Reply To: assigning hidden values to combo box elements
Hi edwardsmarkf,
itemClick
event is what I was refering to, yes. Your example is working but keep in mind that Smart Elements will migrate to ShadowDOM by default in the near future. This means that targeting ComboBox’s internal elements via selectors will not work. Officialy there isn’t a way to achieve what you need through the API of the element ( at least for now ). That is why i didn’t suggest a solution. However there’s one more thing you can look up if you wish. There’s an opening
event that you can listen to. Since clicking on a token opens the drop down by default you can somehow check if the token was clicked to determine when to call your function instead and prevent the opening of the drop down, by calling `event.preventDefault()’.
Best Regards,
Christopher
Smart HTML Elements Team
https://www.htmlelements.com