inspector: disable root.id input

This commit is contained in:
jean-emmanuel 2021-04-23 14:01:45 +02:00
parent 18d8f36d60
commit d3df6cc024

View file

@ -67,6 +67,8 @@ class UiInspectorField extends UiWidget {
var input = html`<textarea tabIndex="${this.tabIndex}" class="no-keybinding" name="${this.name}" rows="${stringValue.split('\n').length}"></textarea>`
if (this.name === 'id' && this.widget.props.type === 'root') input.disabled = true
if (this.default.value === 'auto' && stringValue === 'auto') {
input.placeholder = stringValue
} else {