vitalets / combodate

Dropdown date and time picker
http://vitalets.github.com/combodate
207 stars 82 forks source link

minuteStep cannot be set via data-minuteStep attribute... #44

Open hdngr opened 8 years ago

hdngr commented 8 years ago

My guess is it has something to do with the attribute being coerced into a number or string at some point, but I have not investigated...

elfalem commented 8 years ago

It's not clear in the documentation but you should use data-minute-step. This has to do with the casing of data object returned by jquery. data-minuteStep and data-minutestep both are presented as the property minutestep which doesn't override the default option minuteStep.