bug fix for: #312

Fixes iOS TypeError for inputs where `type="month"`.