Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] fix(TextArea): inputRef ref hook usage #4296

Closed
wants to merge 1 commit into from

Conversation

weilandia
Copy link
Contributor

Fixes #4294

Checklist

  • Includes tests
  • [NA] Update documentation

Changes proposed in this pull request:

Allow TextArea to receive an IRefObject for the InputRef. Change IRefObject.current to not be readonly.

Reviewers should focus on:

Never used Typescript, so I may be doing weird things...

@palantirtech
Copy link
Member

Thanks for your interest in palantir/blueprint, @weilandia! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@adidahiya adidahiya changed the title Closes #4294 [core] fix(TextArea): inputRef ref hook usage Aug 29, 2020
@adidahiya adidahiya assigned adidahiya and unassigned adidahiya Aug 29, 2020
@adidahiya adidahiya self-requested a review August 29, 2020 21:16
@adidahiya
Copy link
Contributor

I pushed a similar but slightly different implementation here: #4338. It matches some of the other components which deal with ref objects. It ends up being more verbose, which I don't love, so I may reconsider this approach across the board for those components in a future refactor... but for now I'm going to go with consistency. Thanks for the PR

@adidahiya adidahiya closed this Sep 21, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InputRef is not a function error for TextArea
3 participants