Skip to content

Commit

Permalink
Alpha-sort props
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Feb 13, 2024
1 parent e551d16 commit 52bf5a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/react-resizable-panels/src/Panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,10 @@ export function PanelWithForwardedRef({

return createElement(Type, {
...rest,
id: panelId,

children,
className: classNameFromProps,
id: panelId,
style: {
...style,
...styleFromProps,
Expand Down
6 changes: 4 additions & 2 deletions packages/react-resizable-panels/src/PanelGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -880,14 +880,16 @@ function PanelGroupWithForwardedRef({
{ value: context },
createElement(Type, {
...rest,
id: groupId,

children,
className: classNameFromProps,
id: groupId,
ref: panelGroupElementRef,
style: {
...style,
...styleFromProps,
},
ref: panelGroupElementRef,

// CSS selectors
"data-panel-group": "",
"data-panel-group-direction": direction,
Expand Down
3 changes: 2 additions & 1 deletion packages/react-resizable-panels/src/PanelResizeHandle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ export function PanelResizeHandle({

return createElement(Type, {
...rest,
id: resizeHandleId,

children,
className: classNameFromProps,
id: resizeHandleId,
onBlur: () => setIsFocused(false),
onFocus: () => setIsFocused(true),
ref: elementRef,
Expand Down

0 comments on commit 52bf5a5

Please sign in to comment.