Skip to content

Commit 2532a25

Browse files
committed
fix: better naming
1 parent f8a8dbc commit 2532a25

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/.stories/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ function VariableWidthHeight() {
567567
handleSortOver(newIndex);
568568
}}
569569
onSortEnd={handleSortEnd}
570-
enableTransitions={false}
570+
disableDefaultAnimations
571571
dragIndex={dragIndex}
572572
activeIndex={activeIndex}
573573
/>

src/SortableContainer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ export default function sortableContainer(
811811
}
812812
}
813813

814-
if (this.props.enableTransitions) {
814+
if (!this.props.disableDefaultAnimations) {
815815
setTranslate3d(node, translate);
816816
nodes[i].translate = translate;
817817
}

src/SortableContainer/props.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const propTypes = {
1010
contentWindow: PropTypes.any,
1111
disableAutoscroll: PropTypes.bool,
1212
distance: PropTypes.number,
13-
enableTransitions: PropTypes.bool,
13+
disableDefaultAnimations: PropTypes.bool,
1414
getContainer: PropTypes.func,
1515
getHelperDimensions: PropTypes.func,
1616
helperClass: PropTypes.string,
@@ -63,7 +63,7 @@ export const defaultProps = {
6363
axis: 'y',
6464
disableAutoscroll: false,
6565
distance: 0,
66-
enableTransitions: true,
66+
disableDefaultAnimations: false,
6767
getHelperDimensions: defaultGetHelperDimensions,
6868
hideSortableGhost: true,
6969
lockOffset: '50%',

0 commit comments

Comments
 (0)