-
Notifications
You must be signed in to change notification settings - Fork 208
Components returned from withComponent
use the wrong rootEl
#376
Comments
Hi @tikotzky! Thanks for the issue. It probably broke when we merged and released #374 (cc @exah). @tikotzky, do you think you could write a unit test to reproduce this issue? Probably in this file: https://github.com/paypal/glamorous/blob/master/src/__tests__/create-glamorous.with-component.js If you feel so inclined to provide the fix as well that would be welcome :) Thanks! |
I already have a unit test which reproduces the issue :) I'll try to fix but its my first time peering under the hood at glamorous, so might take a few... |
Hopefully looking at #374 will give you some clues. Thanks! |
Thanks! |
The test seemed to be breaking due to a change in enzyme... |
Pr updated. Thanks for the awesome lib 😄 👍 |
Fixed! |
glamorous
version: 4.11.3glamor
version: 2.20.40react
version: 16.2.0Relevant code.
What you did:
Tried to render an
a
tag with anhref
attributeWhat happened:
It rendered an
a
tag without thehref
attributeReproduction:
https://codesandbox.io/s/vvzq1kwlw0
Problem description:
This broke in 4.11.3
Here is a codesandbox with the same code working on 4.11.2
https://codesandbox.io/s/3xr58oxqv6
Suggested solution:
Dont know the internals well enough 😄
The text was updated successfully, but these errors were encountered: