Browse Source

fixes for react

Adam Shaw 5 years ago
parent
commit
04be4dde9d
2 changed files with 6 additions and 5 deletions
  1. 1 1
      packages-premium
  2. 5 4
      packages/core/src/Toolbar.tsx

+ 1 - 1
packages-premium

@@ -1 +1 @@
-Subproject commit 00d93364e0fe93060c8ac640fb74700866c41a61
+Subproject commit 5a6ea6692488cd77f44084a7360b27e8414f8f06

+ 5 - 4
packages/core/src/Toolbar.tsx

@@ -47,19 +47,20 @@ export class Toolbar extends BaseComponent<ToolbarProps> {
 
 
     return (
     return (
       <div className={classNames.join(' ')}>
       <div className={classNames.join(' ')}>
-        {this.renderSection(startContent || [])}
-        {this.renderSection(centerContent || [])}
-        {this.renderSection(endContent || [])}
+        {this.renderSection('start', startContent || [])}
+        {this.renderSection('center', centerContent || [])}
+        {this.renderSection('end', endContent || [])}
       </div>
       </div>
     )
     )
   }
   }
 
 
 
 
-  renderSection(widgetGroups: ToolbarWidget[][]) {
+  renderSection(key: string, widgetGroups: ToolbarWidget[][]) {
     let { props } = this
     let { props } = this
 
 
     return (
     return (
       <ToolbarSection
       <ToolbarSection
+        key={key}
         widgetGroups={widgetGroups}
         widgetGroups={widgetGroups}
         title={props.title}
         title={props.title}
         activeButton={props.activeButton}
         activeButton={props.activeButton}