-
Bug
-
Resolution: Fixed
-
Normal
-
5.0.8
-
None
-
None
http://zkfiddle.org/sample/2bp62ak/2-sclass-is-not-appling-on-div-if-visible-false
<zk>
<style>
.es-droptargetpreview
</style>
<div id="test" sclass="es-droptargetpreview" visible="false" />
<button onClick="test.setVisible(true)" label="it work if setVisible(true)" />
</zk>
The expecting behavior is the es-droptargetpreview css class should show up on the div ,
and the css class should work for it in this case.
If works if we have a button to setVisible(true) later.
It looks like kind of ROD mechanism , but I think it's not a good idea,
since we might need to access the sclass from javascript or css in some cases.