Skip to content

Commit

Permalink
fix: reduce zIndex so that onClick works consistently without needing…
Browse files Browse the repository at this point in the history
… to double click
  • Loading branch information
pete-watters committed Oct 4, 2023
1 parent 0f629b0 commit 5f44d5a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { TextField } from '@radix-ui/themes';
import { useField } from 'formik';
import { css } from 'leather-styles/css';
import { FlexProps, styled } from 'leather-styles/jsx';
import { useFocus } from 'use-events';

import { useIsFieldDirty } from '@app/common/form-utils';

Expand All @@ -20,7 +19,7 @@ interface InputFieldProps extends FlexProps {

const psuedoBorderStyles = {
content: '""',
zIndex: 999999,
zIndex: 1,
top: 0,
right: 0,
bottom: 0,
Expand All @@ -33,7 +32,6 @@ const psuedoBorderStyles = {

export function InputField({ dataTestId, name, onPaste, onChange, value }: InputFieldProps) {
const [field, meta] = useField(name);
// const [isFocused, focusBind] = useFocus();
const [isFocused, setIsFocused] = useState(false);
const isDirty = useIsFieldDirty(name);

Expand Down

0 comments on commit 5f44d5a

Please sign in to comment.