@rpg-engine/long-bow 0.6.63 → 0.6.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.6.63",
3
+ "version": "0.6.64",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -20,14 +20,13 @@ export interface ITabsContainer {
20
20
  tabs: ITab[];
21
21
  type: MultitabType;
22
22
  }
23
-
24
23
  export const TabsContainer: React.FC<ITabsContainer> = ({
25
24
  children,
26
25
  onCloseButton,
27
26
  tabs,
28
27
  type = MultitabType.Brown,
29
28
  }) => {
30
- const [selectedTab, setSelectedTab] = useState(tabs[0].id); //by default the first one
29
+ const [selectedTab, setSelectedTab] = useState(tabs[0].id); // by default the first one
31
30
 
32
31
  const onRenderTabs = () =>
33
32
  tabs.map((tab, index) => (
@@ -55,9 +54,13 @@ export const TabsContainer: React.FC<ITabsContainer> = ({
55
54
  <DraggableContainer
56
55
  onCloseButton={onCloseButton}
57
56
  type={onGetContainerType()}
57
+ cancelDrag=".tabs-container *" // Disable drag on all elements inside .tabs-container
58
58
  >
59
59
  {onRenderTabs()}
60
- <BodyContainer selectedTab={selectedTab} className={type}>
60
+ <BodyContainer
61
+ selectedTab={selectedTab}
62
+ className={`${type} tabs-container`}
63
+ >
61
64
  {children}
62
65
  </BodyContainer>
63
66
  </DraggableContainer>