-
Bug
-
Resolution: Fixed
-
Normal
-
8.6.1
-
Security Level: Jimmy
-
ZK 8.6.2 S1, ZK 8.6.2 S2
-
None
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.