From d3df6cc02430c0d3c12cbf1e56f35e275da9c307 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Fri, 23 Apr 2021 14:01:45 +0200 Subject: [PATCH] inspector: disable root.id input --- src/client/ui/ui-inspector-field.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/ui/ui-inspector-field.js b/src/client/ui/ui-inspector-field.js index e7cd7f40..6eee0d97 100644 --- a/src/client/ui/ui-inspector-field.js +++ b/src/client/ui/ui-inspector-field.js @@ -67,6 +67,8 @@ class UiInspectorField extends UiWidget { var input = html`` + if (this.name === 'id' && this.widget.props.type === 'root') input.disabled = true + if (this.default.value === 'auto' && stringValue === 'auto') { input.placeholder = stringValue } else {