-
Type:
Bug
-
Resolution: Invalid
-
Priority:
Major
-
None
-
Affects Version/s: 9.6.4
-
Component/s: None
-
None
-
None
Steps to Reproduce
<zscript><![CDATA[ import java.time.*; LocalTime now = LocalTime.now(); ]]></zscript> <timebox valueInLocalTime="${now}" width="200px" readonly="true"/>
1. click up or down arrow to change the time
Current Result
the time changed
Expected Result
since it's read-only, the component should not allow users to change the time
Debug Information
- timebox should either disable the buttons like disabled="true" (or hide the buttons).
Workaround
zul.db.Timebox.prototype.setReadonly = function(readonly) { this.$supers('setReadonly', arguments); this.setButtonVisible(!readonly); };