When the dateInput property is set to true, the readonly method does not make the widget completely non-editable. It restricts user input, however, the date can be modified using the arrow keys.
Reproduction of the issue in a Dojo sample:
1. Initialize DatePicker
2. Set the dateInput property to true
3. Call the readonly() method
Value can be changed with the arrow keys
The value should not be editable