Skip to content

Commit

Permalink
fix: 🐛 antd array-table sortable infinite loop and cursor style (#3911)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlzyx authored Jul 19, 2023
1 parent 3627fb1 commit f254b39
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/antd/src/__builtins__/sort.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function SortableElement<T extends React.HTMLAttributes<HTMLElement>>(
}px, 0)`,
transition: `${transform ? 'all 200ms ease' : ''}`,
}
const dragStyle = {
const dragStyle: React.CSSProperties = {
transition,
opacity: '0.8',
transform: `translate3d(${transform?.x || 0}px, ${
Expand Down
4 changes: 4 additions & 0 deletions packages/antd/src/array-base/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
.@{array-base-prefix-cls}-sort-handle {
cursor: move;
color: #888 !important;
// overrid iconfont.less .anticon[tabindex] cursor
&.anticon[tabindex] {
cursor: move;
}
}

.@{array-base-prefix-cls}-addition {
Expand Down
4 changes: 4 additions & 0 deletions packages/antd/src/array-table/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
}

.@{ant-prefix}-table {
table {
overflow: hidden;
}

td {
visibility: visible;

Expand Down

0 comments on commit f254b39

Please sign in to comment.