Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-5593

inputWidget bind_ accesses input dom node, may not exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 10.0.0
    • 10.0.0-Beta
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      Run in zk 10 beta (attached test.zul)

      <zk>
      	<listbox>
        		<listitem label="content"></listitem>
            	<listitem visible="false">
            		<listcell>
                		<doublebox/>
                	</listcell>
            	</listitem>
        	</listbox>
      </zk>
      
      

      Current Result

      Page fails to render, error in JS console (in debug info)

      Expected Result

      Page loads without error

      Debug Information

      ncaught TypeError: Cannot read properties of undefined (reading 'value')
          at InputWidget.bind_ (zul.inp.wpd:3895:41)
          at Widget.bindChildren_ (zk.wpd:30645:70)
          at Listcell.bindChildren_ (zul.sel.wpd:1272:111)
          at Widget.bind_ (zk.wpd:30607:29)
          at Widget.bind_ (zk.wpd:38819:28)
          at Widget.bindChildren_ (zk.wpd:30645:70)
          at Widget.bind_ (zk.wpd:30607:29)
          at Widget.bind_ (zk.wpd:38819:28)
          at ItemWidget.bind_ (zul.sel.wpd:425:28)
          at Widget.bindChildren_ (zk.wpd:30645:70)
      

      Workaround

      tbd

            rebeccalai rebeccalai
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: