Skip to content

Commit

Permalink
avoid nested-option.ts history loss
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilyStrelyaev committed Aug 29, 2024
1 parent 377824f commit a3b1a61
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,16 @@ const NestedOption = function NestedOption<P>(props: P & { elementDescriptor: IE
},
);

return (
<React.Fragment>
<NestedOptionContext.Provider value={context}>
{ children }
</NestedOptionContext.Provider>
</React.Fragment>
return React.createElement(
React.Fragment,
{},
React.createElement(
NestedOptionContext.Provider,
{
value: context,
},
children,
),
);
};

Expand Down

0 comments on commit a3b1a61

Please sign in to comment.