Skip to content

Commit

Permalink
fix(devtools): accept json file in import fileinput (facebook#22717)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyash97 authored and zhengjitf committed Apr 15, 2022
1 parent 8ea2c32 commit 874c860
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 874c860

Please sign in to comment.