-
Bug
-
Resolution: Fixed
-
Normal
-
Freshly, 7.0.7
-
Security Level: Jimmy
-
ZK 7.0.7
run example below and click the "save" button
expected behavior is that the "edit" button becomes visible and receives the focus
-> this currently works in ZK 7.0.6.1
-> in ZK 7.0.7 FL it fails to focus the previously autodisabled edit button
<zk xmlns:w="client"> <button id="save" label="save" autodisable="save,edit"> <attribute name="onClick"><![CDATA[ save.setDisabled(true); edit.setVisible(true); edit.setFocus(true); ]]></attribute> </button> <button id="edit" label="edit" autodisable="save,edit"> <!-- <attribute w:name="focus_"><![CDATA[ --> <!-- function(timeout) { --> <!-- console.log('focus', this.id, arguments); --> <!-- this.$focus_(timeout); --> <!-- } --> <!-- ]]></attribute> --> <!-- <attribute w:name="setDisabled"><![CDATA[ --> <!-- function() { --> <!-- console.log('setDisabled', this.id, arguments); --> <!-- this.$setDisabled.apply(this, arguments); --> <!-- } --> <!-- ]]></attribute> --> <attribute name="onClick"><![CDATA[ save.setDisabled(false); edit.setVisible(false); text.setFocus(true); ]]></attribute> </button> <textbox id="text"/> <zscript><![CDATA[ edit.setVisible(false); text.setFocus(true); ]]></zscript> </zk>
when comparing version 7.0.6.1 to 7.0.7 the commented out log statements just help to debug the case, they are not necessary to reproduce the problem
- relates to
-
ZK-2935 A modal window with no focusable control will give focus to background element on tab focus.
- Closed