webscopeio/react-textarea-autocomplete

Add support for disabled prop

SaeedZhiany opened this issue · 1 comments

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
}

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.