Commit 290bae09 authored by Trần Ngọc Nam Anh's avatar Trần Ngọc Nam Anh

Allow re-choose the same file again

parent 93175f30
...@@ -54,7 +54,10 @@ const ImageCropper = (props) => { ...@@ -54,7 +54,10 @@ const ImageCropper = (props) => {
return ( return (
<> <>
<Input type="file" name="file" id="file-logo" className="w-auto" onChange={handleFileChoose} /> <Input type="file" name="file" id="file-logo" className="w-auto" onChange={handleFileChoose}
onClick={(event) => {
event.target.value = null
}} />
<Modal isOpen={modal} toggle={toggle} className="modal-lg" contentClassName="modal-image-cropper"> <Modal isOpen={modal} toggle={toggle} className="modal-lg" contentClassName="modal-image-cropper">
<ModalHeader toggle={toggle}>Chn phn nh mong mun</ModalHeader> <ModalHeader toggle={toggle}>Chn phn nh mong mun</ModalHeader>
<ModalBody> <ModalBody>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment