From 563840080c7f9905ef8400f8f76978078c3a0665 Mon Sep 17 00:00:00 2001 From: Siklos Date: Fri, 5 Aug 2022 12:28:23 +0200 Subject: [PATCH] Fix bug where when an input is emptied, its type change to 'number' --- src/Components/Properties/Properties.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Properties/Properties.tsx b/src/Components/Properties/Properties.tsx index e75e86b..61d0bff 100644 --- a/src/Components/Properties/Properties.tsx +++ b/src/Components/Properties/Properties.tsx @@ -42,7 +42,7 @@ export class Properties extends React.Component { const id = `property-${key}`; - const type = isNaN(Number(value)) ? 'text' : 'number'; + const type = 'text'; const isDisabled = key === 'id' || key === 'parentId'; // hardcoded groupInput.push(