Closed highri5e closed 2 years ago
In case it still helps - the filestack-js picker options (see https://filestack.github.io/filestack-js/interfaces/pickeroptions.html) are exposed through the pickerOptions
prop and there's an onClose
method there e.g.
<PickerOverlay
apikey={YOUR_API_KEY}
pickerOptions={{
onClose: () => {
// update your state
}
}}
/>
Great thanks @josephrace!!!
Amazing, it works!! Thanks @josephrace 🚀
Since we're now handling the showing of the PickerOverlay ourselves, it would be good to have an onClose prop for PickerOverlay (just like onSuccess, onError) so we can handle the event of the picker being closed from within it's UI.
This is so we can update our state when the user closes the PickerOverlay with the x in the top right corner or hit ESC.