Select with all options disabled breaks
mpmp0 opened this issue · comments
Version of Dropkick:
2.1.9
Expected Behavior
A new dropkick dropdown element should appear with all options disabled
Actual Behavior
Dropkick shows error:
"Uncaught TypeError: Cannot read property 'className' of undefined"
Steps To Reproduce:
- In a select element, make all options disabled
- Initialize dropkick on select element
- "Uncaught TypeError: Cannot read property 'className' of undefined"
JSBin / Example repo / Failing test:
Hi! Thanks for the issue & sorry it took more than a year for a reply :/
Looks like v2.2.x doesn't suffer from this issue, so I'm going to close.
(JSBin for reference: http://jsbin.com/didewiduhu/1/edit?html,js,output)