Skip to content

Commit

Permalink
remove duplicate innerRef
Browse files Browse the repository at this point in the history
  • Loading branch information
joakbjerk committed Sep 27, 2023
1 parent 8d57ff0 commit c116ce0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/dnb-eufemia/src/extensions/forms/Field/String.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { MutableRefObject, useContext } from 'react'
import React, { useContext } from 'react'
import classnames from 'classnames'
import { HelpButton, Input, Textarea } from '../../../components'
import { InputProps } from '../../../components/input/Input'
Expand Down Expand Up @@ -36,9 +36,6 @@ export type Props = FieldHelpProps &
pattern?: string
// Styling
width?: false | 'small' | 'medium' | 'large' | 'stretch'
innerRef?: React.Ref<
MutableRefObject<HTMLInputElement | HTMLTextAreaElement>
>
}

function StringComponent(props: Props) {
Expand Down Expand Up @@ -108,11 +105,9 @@ function StringComponent(props: Props) {
characterCounter,
mask,
width,
keep_placeholder,
handleFocus,
handleBlur,
handleChange,
innerRef,
} = useDataValue(preparedProps)

const characterCounterElement = characterCounter
Expand Down Expand Up @@ -177,7 +172,6 @@ function StringComponent(props: Props) {
on_change={handleChange}
disabled={disabled}
stretch={width !== undefined}
keep_placeholder={keep_placeholder}
inner_ref={innerRef}
/>
) : (
Expand Down

0 comments on commit c116ce0

Please sign in to comment.