mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
Url: fix input focus
This commit is contained in:
parent
385fca82c9
commit
3f9aa3bb7f
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ class UrlUI extends Component {
|
|||
// Component is mounted right away, but the tab panel might be animating
|
||||
// still, so input element is positioned outside viewport. This fixes it.
|
||||
setTimeout(() => {
|
||||
if (!this.connectButton) return
|
||||
if (!this.input) return
|
||||
this.input.focus({ preventScroll: true })
|
||||
}, 150)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue