JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › DropDownList › js-problems with dropdownlist in form › Reply To: js-problems with dropdownlist in form
December 2, 2021 at 3:30 pm
#102629
Participant
Hi olegr,
I can confirm the reported behavior form you and its definitely a issue and I have added a work item for this use case.
However as a workaround if you want to get the value of the SmartDropDown component you can do by using the following code snippet:
const dropdownlist = document.querySelector('.smart-drop-down-list');
dropdownlist.addEventListener('change', (event) => {
let dropdowValue = event.detail.value;
console.log(dropdowValue)
});
Let me know if this suits you!
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/