There have been numerous forum posts about this, but datepicker is still bad at doing month-and-year-only selections. My particular use case is to set the expiration date for a credit card - only month and year are needed.
yearRange: (new Date).getFullYear() + ":" + ((new Date).getFullYear() + 10),
});
But unfortunately when a user changes the month and year and then clicks away, the change is not propagated to the text input element.
This is a use case (granted, there are few) where it makes perfect sense to always update the input value on every change (or alternatively just when the datepicker loses focus, or when "done" is clicked).
I'm open to alternative solutions to the month-and-year-only problem, but alwaysUpdate seems like a low hanging fruit.