Skip to content

Commit

Permalink
Revert "[PLAY-91] Add unique key prop to text input (#1741)" (#1804)
Browse files Browse the repository at this point in the history
This reverts commit c116cab.
  • Loading branch information
thestephenmarshall authored Mar 2, 2022
1 parent 9debb18 commit b8db346
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions playbook/app/pb_kits/playbook/pb_text_input/_text_input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ const TextInput = (props: TextInputProps, ref: React.ElementRef<"input">) => {
globalProps(props),
className,
])
const uniqueTextInputKey = `${id ? id : ''}${Math.ceil(Math.random() * 100000)}`

const addOnIcon = (
<Icon
className="add-on-icon"
Expand All @@ -91,7 +89,6 @@ const TextInput = (props: TextInputProps, ref: React.ElementRef<"input">) => {
className="text_input"
disabled={disabled}
id={id}
key={uniqueTextInputKey}
name={name}
onChange={onChange}
placeholder={placeholder}
Expand Down

0 comments on commit b8db346

Please # to comment.