Semantic-Org / Semantic-UI-React

The official Semantic-UI-React integration
https://react.semantic-ui.com
MIT License
13.23k stars 4.05k forks source link

Some types are missing in Input and Textarea #4133

Open ivan-kleshnin opened 3 years ago

ivan-kleshnin commented 3 years ago

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

welcome[bot] commented 3 years ago

👋 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.

MonstraG commented 3 years ago
declare class Input extends React.Component<InputProps> {
  focus: () => void
  select: () => void
}

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

Also lacks blur: () => void