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

vertical tabbox, toolbar causing JS error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.6.1
    • Fix Version/s: 8.6.2
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
    • gh.sprint.customfield.default.name:
      ZK 8.6.2 S1, ZK 8.6.2 S2

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                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