mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
just focus on input if there is one
This commit is contained in:
parent
a1c402ce8d
commit
d28864ab73
@ -28,7 +28,11 @@ export default {
|
||||
theme: 'dark',
|
||||
trigger,
|
||||
onMount(instance) {
|
||||
instance.popper.querySelector('input').focus({ preventScroll: true })
|
||||
const input = instance.popper.querySelector('input')
|
||||
|
||||
if (input) {
|
||||
input.focus({ preventScroll: true })
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user