Skip to content

Commit 782080d

Browse files
committed
Remove onMouseDown from SplitView
1 parent 1300798 commit 782080d

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

packages/@react-aria/splitview/src/useSplitView.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ export function useSplitView(props: SplitViewAriaProps, state: SplitViewState):
3333
secondaryMaxSize = Infinity,
3434
orientation = 'horizontal' as 'horizontal',
3535
allowsResizing = true
36-
// TODO this really needs to be renamed!
37-
// onMouseDown: propsOnMouseDown
3836
} = props;
3937
let {containerState, handleState} = state;
4038
let id = useId(providedId);

packages/@react-spectrum/splitview/stories/SplitView.stories.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,6 @@ storiesOf('SplitView', module)
134134
</SplitView>
135135
)
136136
)
137-
.add(
138-
'onMouseDown',
139-
() => (
140-
<SplitView UNSAFE_className={svStyles['storybook-SplitView']} onMouseDown={action('onMouseDown')}>
141-
<div>Primary</div>
142-
<div>Secondary</div>
143-
</SplitView>
144-
)
145-
)
146137
.add(
147138
'with scrolling content',
148139
() => (

packages/@react-types/shared/src/splitview.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
import {
1414
Dispatch,
15-
MouseEventHandler,
1615
MutableRefObject,
1716
ReactElement,
1817
SetStateAction
@@ -55,7 +54,6 @@ export interface SplitViewState {
5554

5655
export interface SplitViewAriaProps {
5756
id?: string,
58-
onMouseDown?: MouseEventHandler,
5957
allowsResizing?: boolean,
6058
orientation?: Orientation,
6159
primaryPane?: 0 | 1,

0 commit comments

Comments
 (0)