fix attachment buttons

This commit is contained in:
Henry Jameson 2025-03-13 01:30:15 +02:00
parent c4affccf6d
commit 1adb8236d9
2 changed files with 4 additions and 2 deletions

View file

@ -15,7 +15,9 @@ export default {
},
{
component: 'Button',
parent: { component: 'Attachment' },
parent: {
component: 'Attachment'
},
directives: {
background: '#FFFFFF',
opacity: 0.5

View file

@ -516,7 +516,7 @@ export const init = ({
.filter(c => virtualComponents.has(c) && !nonEditableComponents.has(c))
} else if (liteMode) {
validInnerComponents = (component.validInnerComponentsLite || component.validInnerComponents || [])
} else if (component.name === 'Root') {
} else if (component.name === 'Root' || component.states != null) {
validInnerComponents = component.validInnerComponents || []
} else {
validInnerComponents = component