Details
-
Bug
-
Resolution: Invalid
-
Major
-
None
-
9.6.4
-
None
-
None
Description
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); };