Answers for "react js clear file input value"

3

clear input file html react

e.target.value = null;
Posted by: Guest on March-08-2020
0

How to reset ReactJS file input

<input onChange={this.onChange} onClick={e => (e.target.value = null)} type="file" />
Posted by: Guest on September-30-2021

Browse Popular Code Answers by Language