Skip to content

Commit

Permalink
feat(text-field): remove not needed prop
Browse files Browse the repository at this point in the history
  • Loading branch information
andresz1 committed Jun 29, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent cdcc957 commit 8fba304
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/components/text-field/src/TextField.tsx
Original file line number Diff line number Diff line change
@@ -99,7 +99,7 @@ export const TextField = forwardRef<HTMLInputElement, TextFieldProps>(

{elements}

<TextFieldFieldset intent={intent} isDisabled={isDisabled}>
<TextFieldFieldset intent={intent}>
<TextFieldLegend
requiredIndicator={requiredIndicator}
isExpanded={isExpanded}
6 changes: 3 additions & 3 deletions packages/components/text-field/src/TextFieldFieldset.tsx
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@ import { ComponentPropsWithoutRef } from 'react'

export interface TextFieldFieldsetProps
extends ComponentPropsWithoutRef<'fieldset'>,
Pick<InputContainerProps, 'intent' | 'isDisabled'> {}
Pick<InputContainerProps, 'intent'> {}

export const TextFieldFieldset = ({ intent, isDisabled, ...others }: TextFieldFieldsetProps) => {
export const TextFieldFieldset = ({ intent, ...others }: TextFieldFieldsetProps) => {
return (
<InputContainer intent={intent} isDisabled={isDisabled} asChild>
<InputContainer intent={intent} asChild>
<fieldset aria-hidden="true" {...others} />
</InputContainer>
)

0 comments on commit 8fba304

Please sign in to comment.