Robdel12 / DropKick

A JavaScript plugin for creating beautiful, accessible, and painless custom dropdowns.

Home Page:http://dropkickjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty select causes crash

Korri opened this issue · comments

When called on a <select> with no <option/> tags dropkick causes an unhandled error:

Uncaught TypeError: Cannot read property 'className' of undefined

I know it is not something that should happen, but it can be pretty anoying as it kills any remaining javascript on the page.

Thanks for the issue! I'd like to handle this error a little better so it doesn't lill the rest of the JS on the page. Hopefully there will be time over the holiday break to take care of this :P