Skip to content

Commit b687e06

Browse files
authored
paste handlers (#5456)
1 parent 8107f48 commit b687e06

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

editor/src/components/editor/remix-navigation-bar.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ export const RemixNavigationBar = React.memo(() => {
194194
includeBoxShadow={false}
195195
onSubmitValue={changeRemixURLInEditor}
196196
onEscape={resetURL}
197+
pasteHandler={true}
197198
/>
198199
<StarUnstarIcon
199200
url={currentURL ?? ''}

editor/src/components/navigator/navigator-item/component-picker.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { assertNever } from '../../../core/shared/utils'
1414
import { insertableComponent } from '../../shared/project-components'
1515
import type { StylePropOption, InsertableComponent } from '../../shared/project-components'
1616
import type { Size } from '../../../core/shared/math-utils'
17+
import { dataPasteHandler } from '../../../utils/paste-handler'
1718

1819
export interface ComponentPickerProps {
1920
allComponents: Array<InsertMenuItemGroup>
@@ -177,6 +178,7 @@ const FilterBar = React.memo((props: FilterBarProps) => {
177178
onChange={handleFilterChange}
178179
value={filter}
179180
data-testId={componentPickerFilterInputTestId}
181+
{...dataPasteHandler(true)}
180182
/>
181183
)
182184
})

0 commit comments

Comments
 (0)