Uppy: Cannot read property 'focus' of undefined

Created on 23 May 2018  Â·  5Comments  Â·  Source: transloadit/uppy

When I press ESC, the console shows 'focus' of undefined
Before event uppy

Bug Dashboard

Most helpful comment

@arturi Maybe we should add the event handlers for tab order and ESC inside showModal and remove them in closeModal?

All 5 comments

Hi! Could you paste the full error message (screenshot would be awesome too) and steps to reproduce? Tried just pressing ESC on the Dashboard — the modal windows has closed as expected.

2018-05-24 10 23 44

step1. into web & open console (focus web ,not console)
step2. press esc , you can see that
step3. open uppy & close modal
step4 press esc , you can't see error

2018-05-24 10 33 11
2018-05-24 10 33 44

Remember not to press uppy before press esc

Aha, closeModal is being called even if the modal is already closed. that makes sense. Thanks for the report.

@arturi Maybe we should add the event handlers for tab order and ESC inside showModal and remove them in closeModal?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oyeanuj picture oyeanuj  Â·  3Comments

enneid picture enneid  Â·  4Comments

NihadOb picture NihadOb  Â·  3Comments

ghost picture ghost  Â·  4Comments

agreene-coursera picture agreene-coursera  Â·  4Comments