Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes

If a DropDownList component is initialised from a select element and no options are selected (i.e. the selectedIndex property on the select element is -1) then it errors.

I've modified your documentation example of initialising a DropDownList from a select element to set selectedIndex to -1 on the select element prior to initialisation and it triggers the error - see here.

My guess is that the "else if" clause that erroring line is under just needs to also exclude running that small block of code if this.element.selectedIndex is -1 (as I think that would leave the value on the component unset, mirroring the select element's lack of value set).