Skip to content

Commit

Permalink
feat: update rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrywu001 committed Feb 28, 2023
1 parent 8db04be commit bb96aed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sandpack-react/src/presets/Sandpack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export const Sandpack: SandpackInternal = ({

const onDragMove = (event: MouseEvent): void => {
if (!dragEventTargetRef.current) return;
event.preventDefault();

const container = dragEventTargetRef.current.parentElement as
| HTMLDivElement
Expand Down Expand Up @@ -204,7 +203,7 @@ export const Sandpack: SandpackInternal = ({
<SandpackCodeEditor
{...codeEditorOptions}
style={{
height: options?.editorHeight, // use the original editor height
height: options.editorHeight, // use the original editor height
flexGrow: horizontalSize,
flexShrink: horizontalSize,
flexBasis: 0,
Expand Down

0 comments on commit bb96aed

Please sign in to comment.