-
Bug
-
Resolution: Fixed
-
Normal
-
8.5.1.1
-
Security Level: Jimmy
-
None
-
ZK 8.5.2 S1, ZK 8.5.2 S2
-
None
Steps to Reproduce
<colorbox value="#6677FF"/>
open popup
Current Result
the input field supposed to show the hex value is initially empty
Expected Result
hex value shown
Root Cause
zkex.inp.Colorpalette.onShow is not setting the input value
Workaround
Add the following override to initialize the hex input:
zk.afterLoad('zkex.inp', function() { var xColorpalette = {}; zk.override(zkex.inp.Colorpalette.prototype, xColorpalette, { onShow : function() { this.$n('hex-inp').value = this._color.getHex(); xColorpalette.onShow.apply(this, arguments); //call original } });//zk.override });//zk.afterLoad