Closed KhaledTouaibia closed 3 years ago
This commit solves #14
element.options[element.selectedIndex].textContent;
element.selectedIndex is -1, therefore this error happens
element.selectedIndex
So i added a condition to check if element.selectedIndex == -1 then do nothing in line 107. I also added an example in test.html page under select section with an empty select tag.
element.selectedIndex == -1
107
Thanks, merged! Better late than never?
This commit solves #14
element.options[element.selectedIndex].textContent;
element.selectedIndex
is -1, therefore this error happensSo i added a condition to check if
element.selectedIndex == -1
then do nothing in line107
. I also added an example in test.html page under select section with an empty select tag.