+ | 0 &&
+ css`
+ border-top: 1px solid #ececeb;
+ `
+ )}
+ >
+ {
+ update(idx, e.currentTarget.value, v || "");
+ }}
+ onBlur={
+ onBlur
+ ? (e) => {
+ onBlur("key", e.currentTarget.value);
+ }
+ : undefined
+ }
+ ref={keyref}
+ >
+ |
+ 0 &&
+ css`
+ border-top: 1px solid #ececeb;
+ `
+ )}
+ >
+ {
+ update(idx, k, e.currentTarget.value || "");
+ }}
+ onKeyDown={(e) => {
+ if (e.key === "Backspace" && !e.currentTarget.value) {
+ keyref.current?.focus();
+ }
+ }}
+ onBlur={
+ onBlur
+ ? (e) => {
+ onBlur("value", e.currentTarget.value);
+ }
+ : undefined
+ }
+ ref={valref}
+ >
+ |
+
+ );
+};
diff --git a/comps/form/field/type/TypeInput.tsx b/comps/form/field/type/TypeInput.tsx
index 2eec322..ca77a21 100755
--- a/comps/form/field/type/TypeInput.tsx
+++ b/comps/form/field/type/TypeInput.tsx
@@ -215,7 +215,19 @@ export const FieldTypeInput: FC<{
);
}
case "key-value":
- return