Semantic-UI-React icon indicating copy to clipboard operation
Semantic-UI-React copied to clipboard

Some types are missing in Input and Textarea

Open ivan-kleshnin opened this issue 4 years ago • 2 comments

Bug Report

Description

StrictInputProps: https://github.com/Semantic-Org/Semantic-UI-React/blob/master/src/elements/Input/Input.d.ts#L10

is missing value and placeholder types.

StrictTextAreaProps: https://github.com/Semantic-Org/Semantic-UI-React/blob/master/src/addons/TextArea/TextArea.d.ts#L7

has value type but not placeholder.

I'm not an expert with TS and Semantic so I can miss something obvious. Please correct me if so.

Version

2.0.1

ivan-kleshnin avatar Dec 29 '20 12:12 ivan-kleshnin

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

welcome[bot] avatar Dec 29 '20 12:12 welcome[bot]

declare class Input extends React.Component<InputProps> {
  focus: () => void
  select: () => void
}

declare class TextArea extends React.Component<TextAreaProps> {
  focus: () => void
}

Also lacks blur: () => void

MonstraG avatar Feb 08 '21 11:02 MonstraG