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

vertical tabbox, toolbar causing JS error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.6.2
    • 8.6.1
    • Components
    • Security Level: Jimmy
    • ZK 8.6.2 S1, ZK 8.6.2 S2

      Steps to Reproduce

      Create a tabbox with left or right orientation, and add a toolbar.

      <tabbox orient="left">
        <tabs>
          <tab label="Tab1" />
        </tabs>
        <toolbar>
          <textbox placeholder="textbox"/>
        </toolbar>
        <tabpanels>
          <tabpanel>
          </tabpanel>
        </tabpanels>
      </tabbox>
      

      or http://zkfiddle.org/sample/3np192e/2-vertical-tabbox-toolbar-failing

      Current Result

      zul.inp.wpd:610 Uncaught TypeError: Cannot read property 'value' of undefined
          at init.bind_ (zul.inp.wpd:610)
          at init.bindChildren_ (zk.wpd:16713)
          at init.bind_ (zk.wpd:16683)
          at init.bindChildren_ (zk.wpd:16713)
          at init.bind_ (zk.wpd:16683)
          at init.$supers (zk.wpd:10645)
          at init.bind_ (zul.tab.wpd:124)
          at init.bindChildren_ (zk.wpd:16713)
          at init.bind_ (zk.wpd:16683)
          at init.bind (zk.wpd:16646)
      

      Expected Result

      working toolbar or meaningful error to the developer indicating incorrect usage

      Debug Info

      Root Cause

      tabbox.js only redraw toolbar when the tabbox is horizontal.
      the toolbar element did not exist cause the problem.

      Workaround

            Leon03 Leon03
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day, 4 hours
                1d 4h
                Remaining:
                Time Spent - 4 hours Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - 4 hours Remaining Estimate - 1 day
                4h