Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI update: Fix input field for JSON Object value types (Fixes #1175) (#1184)

Rich Turner8899c7cbdc18
diff --git a/ui/component/or-mwc-components/src/or-mwc-input.ts b/ui/component/or-mwc-components/src/or-mwc-input.ts
index 652aa1d6a..f3fa4a62f 100644
--- a/ui/component/or-mwc-components/src/or-mwc-input.ts
+++ b/ui/component/or-mwc-components/src/or-mwc-input.ts
@@ -1300,7 +1300,7 @@ export class OrMwcInput extends LitElement {
if (valMinMax.some((v) => typeof (v) !== "string")) {
- if (this.type === InputType.JSON) {
+ if (this.type === InputType.JSON || this.type === InputType.JSON_OBJECT) {
if (valMinMax[0] !== undefined) {
if (typeof valMinMax[0] !== "string" || valMinMax[0] === null) {
try {