diff --git a/app/components/InputVector.tsx b/app/components/InputVector.tsx index 3c4d3c5a17..0a10274524 100644 --- a/app/components/InputVector.tsx +++ b/app/components/InputVector.tsx @@ -1,6 +1,5 @@ import { useRef } from "react"; import { twMerge } from "tailwind-merge"; -import { ignoreDelete } from "~/pages/PageEnigma/store"; interface InputVectorProps { x: number; @@ -42,8 +41,6 @@ export const InputVector = ({ x, y, z, onChange }: InputVectorProps) => { onChange={handleOnChange} ref={xRef} value={x} - onFocus={() => (ignoreDelete.value = true)} - onBlur={() => (ignoreDelete.value = false)} /> { onChange={handleOnChange} ref={yRef} value={y} - onFocus={() => (ignoreDelete.value = true)} - onBlur={() => (ignoreDelete.value = false)} /> { onChange={handleOnChange} ref={zRef} value={z} - onFocus={() => (ignoreDelete.value = true)} - onBlur={() => (ignoreDelete.value = false)} /> diff --git a/app/components/Textarea.tsx b/app/components/Textarea.tsx index cc35c75ac2..278b54a7cb 100644 --- a/app/components/Textarea.tsx +++ b/app/components/Textarea.tsx @@ -2,7 +2,6 @@ import { TextareaHTMLAttributes } from "react"; import { twMerge } from "tailwind-merge"; import { Label } from "./Typography"; import { kebabCase } from "~/utilities"; -import { ignoreDelete } from "~/pages/PageEnigma/store"; type ResizeType = | "none" @@ -25,10 +24,14 @@ export const Textarea = ({ }) => { return (
- {label && } - + {label && + + } +