set autofocus to true

This commit is contained in:
SrGooglo 2023-08-07 15:46:50 +00:00
parent acee74bd67
commit 40162db105

View File

@ -211,12 +211,13 @@ class ComtyApp extends React.Component {
return app.DrawerController.open("searcher", Searcher, {
...options,
componentProps: {
renderResults: true
renderResults: true,
autoFocus: true,
}
})
}
return app.layout.modal.open("searcher", (props) => <Searcher renderResults {...props} />)
return app.layout.modal.open("searcher", (props) => <Searcher autoFocus renderResults {...props} />)
},
openFullImageViewer: (src) => {
const win = new DOMWindow({