-
New Feature
-
Resolution: Done
-
Later
-
8.6.1
-
Security Level: Jimmy
-
ZK 8.6.3 S1
-
None
Steps to Reproduce
run the example
<zk> <zscript><![CDATA[ public void startBusiness(Component comp) { Clients.showBusy("I am busy!"); Events.echoEvent("onBusy", comp, null); } public void doBusiness(Component comp) { Thread.sleep(2000); Clients.clearBusy(); } ]]></zscript> <textbox/> <textbox placeholder="focus me" onFocus="startBusiness(self);" onBusy="doBusiness(self)" /> <textbox/> </zk>
focus the textbox via keyboard tab or mouse click
Current Result
the focus is cleared during the busy animation (which is expected)
after the busy animation the focus remains lost
Expected Result
restore the focus after a busy animation (if possible, i.e. componen hasn't been detached)
Workaround
restore the focus manually:
however tricky in the example above since onFocus starts the busy operation again resulting in an endless loop