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

fix: React: ref is not a prop #21

Merged
merged 1 commit into from
Oct 21, 2021
Merged

Conversation

hanpanpan200
Copy link
Contributor

Description

Wants to control the MasonryList to scroll to top, so need to use ref.
When use ref:

  1. Got error:

React: ref is not a prop

  1. ref.current is undefined

Related Issues

facebook/react#5744
https://stackoverflow.com/questions/38089895/react-ref-is-not-a-prop

@codecov
Copy link

codecov bot commented Oct 21, 2021

Codecov Report

Merging #21 (43df0fe) into master (e74adb4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #21   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           31        31           
  Branches        11        11           
=========================================
  Hits            31        31           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
index.tsx 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e74adb4...43df0fe. Read the comment docs.

@hanpanpan200
Copy link
Contributor Author

Hi @hyochan can you merge the PR?

@hyochan hyochan added the 🍗 enhancement New feature or request label Oct 21, 2021
Copy link
Owner

@hyochan hyochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this was type issue so I exposed the ref value manually.

Thanks for your link and it actually was a React problem 😅

@hyochan hyochan merged commit e398fd2 into hyochan:master Oct 21, 2021
@hyochan
Copy link
Owner

hyochan commented Oct 21, 2021

Will release this to 1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍗 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants