Disabled field still allows date picker to change value.
Even though a field is disabled, the datepicker will allow the value to be changed. How can I disable this?
Hi @EminenceHC - can you share any code with us??
Whether an input is enabled or not, JavaScript can change its value. This isn't specific to this datepicker and can be desired behavior (in the case of showing the selected date but not allowing the user to edit outside of using the datepicker).
Perhaps you could use the embedded/inline datepicker with your own markup and custom behavior?
@EminenceHC can you provide an jsfiddle example for this issue?
Sample taken from #800: http://jsfiddle.net/VUcjY/1/
Well, we use the datepicker as a polyfill for date input fields, and as such, we try to have the behaviour resemble that a native date input field would have. That means: If the field is disabled (or also readonly), the user can not change it's value. I think datepicker should behave in the same way.
+1 for read only datepicker
Fixed in #1731