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

Forward ref #3080

Merged
merged 2 commits into from Mar 23, 2018
Merged

Forward ref #3080

merged 2 commits into from Mar 23, 2018

Conversation

jquense
Copy link
Member

@jquense jquense commented Mar 18, 2018

Maybe we should go a step further and forward it through to the component so it can be attached directly to the DOM node?

@taion
Copy link
Member

taion commented Mar 19, 2018

Is that intuitive? Maybe something like hostRef or nodeRef then?

@jquense
Copy link
Member Author

jquense commented Mar 19, 2018

Maybe something like hostRef or nodeRef then?

Well those are just normal props, wondering if it makes sense to leaverage that we can make ref actually hit the DOM node. I think like in inputs we could have the whole ref.value thing just work without inventing a prop name. This potentially opens us up to using function components as well since we can now handle the ref

I am not sure if it's intuitive, I think that depends on how the ecosystem adjusts to the new API

@taion
Copy link
Member

taion commented Mar 19, 2018

Hmm... fair enough. I wonder if this might make tests harder. Maybe it doesn't matter.

@jquense jquense merged commit 2f7d750 into v4-support Mar 23, 2018
@jquense jquense deleted the forwardRef branch March 23, 2018 16:17
jeffreyroshan added a commit to jeffreyroshan/react-bootstrap that referenced this pull request Mar 26, 2018
* v4-support: (43 commits)
  quick fix-up on BreadcrumbItem (react-bootstrap#3090)
  Add v4 support for Jumbotron (react-bootstrap#3064)
  Breadcrumbs (react-bootstrap#3050)
  Update logo to svg (react-bootstrap#3088)
  navbar (react-bootstrap#3082)
  Forward ref (react-bootstrap#3080)
  Navs (react-bootstrap#3062)
  Add v4 support for tables (react-bootstrap#3070)
  Add v4 support for images and figures (react-bootstrap#3059)
  Set sideEffects to false for webpack 4 (react-bootstrap#3075)
  Style context (react-bootstrap#3046)
  Gatsby v2 (react-bootstrap#3045)
  fix readme, react-16-enzyme doc running (react-bootstrap#3061)
  update to babel 7 (react-bootstrap#3044)
  attribute docs (react-bootstrap#3035)
  Update dependencies (react-bootstrap#3020)
  Fix type in README.md
  Changed ProgressBar check to work with proxied components (react-bootstrap#2965)
  Improve custom overlays docs (react-bootstrap#2998)
  Release v0.32.1-docs.0
  ...
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.

None yet

2 participants