webscopeio / react-textarea-autocomplete

📝 React component implements configurable GitHub's like textarea autocomplete.
MIT License
454 stars 80 forks source link

Add support for disabled prop #213

Closed SaeedZhiany closed 3 years ago

SaeedZhiany commented 3 years ago

Currently, this component only picks four props of HTMLTextAreaElement, it would be great if we have also the disabled prop support. Thanks!

type PickedAttributes = "onChange" | "onSelect" | "onBlur" | "value";

export interface TextareaProps<TItem> extends Pick<React.InputHTMLAttributes<HTMLTextAreaElement>, PickedAttributes> {
  // other props
}
SaeedZhiany commented 3 years ago

It's already supported, my installed type definition package was an old version, upgraded to the latest and the problem has been resolved. I'm closing this issue.