Skip to content

Commit

Permalink
fix(devtools): accept json file in import fileinput (#22717)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyash97 authored Nov 8, 2021
1 parent 2db6d6a commit 2b77ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export default function ProfilingImportExportButtons() {
ref={inputRef}
className={styles.Input}
type="file"
accept=".json"
onChange={
selectedTabID === 'timeline'
? importTimelineDataWrapper
Expand Down
1 change: 1 addition & 0 deletions packages/react-devtools-timeline/src/ImportButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default function ImportButton({children = null, onFileSelect}: Props) {
ref={inputRef}
className={styles.Input}
type="file"
accept=".json"
onChange={handleFiles}
tabIndex={-1}
/>
Expand Down

0 comments on commit 2b77ab2

Please sign in to comment.