mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
fix(devtools): accept json file in import fileinput (#22717)
This commit is contained in:
@@ -122,6 +122,7 @@ export default function ProfilingImportExportButtons() {
|
||||
ref={inputRef}
|
||||
className={styles.Input}
|
||||
type="file"
|
||||
accept=".json"
|
||||
onChange={
|
||||
selectedTabID === 'timeline'
|
||||
? importTimelineDataWrapper
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user