Skip to content

Commit e382000

Browse files
author
KaWaite
committed
v1.0.10 Add extended param to onExtend function.
1 parent 654a460 commit e382000

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reearth-realign",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"author": "KaWaite",
55
"module": "dist/realign.esm.js",
66
"license": "MIT",

src/Grid/GridItem/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export type ItemProps<T extends Location> = {
2727
dropLocation?: T,
2828
originalLocation?: T
2929
) => void;
30-
onExtend?: (id: string) => void;
30+
onExtend?: (id: string, extended?: boolean) => void;
3131
// Props passed from parent.
3232
location?: T;
3333
end?: boolean;
@@ -72,7 +72,7 @@ const GridItem: React.FC<ItemProps<Location>> = ({
7272

7373
const handleExtend = () => {
7474
if (!extendable || !onExtend) return;
75-
onExtend(id);
75+
onExtend(id, extended);
7676
setHovered(false);
7777
};
7878

0 commit comments

Comments
 (0)