nit focus modal

This commit is contained in:
Ruben Fiszel
2025-06-16 14:42:47 +02:00
parent eeb049c0d0
commit 4ec1bb37b9
2 changed files with 6 additions and 1 deletions
@@ -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