mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-09 08:02:25 +00:00
nit focus modal
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
})
|
||||
|
||||
function onFocus() {
|
||||
console.log('focus 2', id)
|
||||
$focusedGrid = {
|
||||
parentComponentId: id,
|
||||
subGridIndex: 0
|
||||
|
||||
@@ -264,7 +264,11 @@
|
||||
if (befSelected) {
|
||||
if (!['ctx', 'state'].includes(befSelected) && !befSelected?.startsWith(BG_PREFIX)) {
|
||||
let item = findGridItem($appStore, befSelected)
|
||||
if (item?.data.type === 'containercomponent' || item?.data.type === 'listcomponent') {
|
||||
if (
|
||||
item?.data.type === 'containercomponent' ||
|
||||
item?.data.type === 'listcomponent' ||
|
||||
item?.data.type === 'modalcomponent'
|
||||
) {
|
||||
$focusedGrid = {
|
||||
parentComponentId: befSelected,
|
||||
subGridIndex: 0
|
||||
|
||||
Reference in New Issue
Block a user