validate.js icon indicating copy to clipboard operation
validate.js copied to clipboard

Edge error on multiple input with nothing selected

Open alexcroox opened this issue 8 years ago • 1 comments

In IE/Edge (doesn't seem to affect Chrome) I'm getting the following error:

Uncaught TypeError: Unable to get property 'selected' of undefined or null reference

I'm using a multiple select, but there is no default selected item as it's a tag chooser using select2 library. This input is not used in the validation rules, and even has data-ignored so I'm not sure why it's even looking at it.

This appears to be the offending line; https://github.com/ansman/validate.js/blob/master/validate.js#L567

alexcroox avatar Apr 25 '17 13:04 alexcroox

Does this still happen in 0.12.0?

ansman avatar Nov 12 '17 05:11 ansman