-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
5.0.10
-
Firefox 10.0
There is a value update bug when using textbox (or other input elements) in a popup component.
When a textbox is used inside a popup, the input text of the textbox is not propagated to the
server when the user edit the text an than directly close the popup by clicking anywhere
outside the popup area. It seams that no onChange events is fired.
The following example zul file could be used to reproduce the bug:
text.zul
<zk xmlns="http://www.zkoss.org/2005/zul" xmlns:n="http://www.zkoss.org/2005/zk/native"> <window title="Hello World!!" border="normal" width="100%"> <button label="step 1: open Popup" popup="popup"/> <n:br/> <button label="step 4: display value"> <attribute name="onClick"> alert(input.getValue()); </attribute> </button> <popup id="popup"> <label value="step 2: edit text"/> <n:br/> <textbox id="input" value="abc"/> <n:br/> <label value="step 3: close popup by clicking outside the popup area"/> </popup> </window> </zk>
- relates to
-
ZK-1955 Impossible to use onblur or onfocus on composite component
- Closed