-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
"id" attribute of View component disappear in Browser's Dom #1006
Comments
That's not supported anymore. The release notes for 0.8.0 describe the change |
@necolas thanks for the info.. couldn't we just add "id" to the whitelist? I think it is an important attribute and we'll need that to play well with legacy Web library from our |
How are you using |
I made web-based application using There will be chance that we need to mark an element with the A quick example, when I'm trying to add particles.js to one of the site.. in this particular case, we could make pull request to the library which add support for |
You can set native attributes using the For your use case I think you can create a separate component that doesn't use RNW and uses One area I think |
@necolas yep, you convinced me. Thanks for your great work ;) |
Hello guys !!!! it's useful for anchor link ;) |
There's |
The problem
"id" attribute of
View
element was lost in Browser's DOM - since react-native-web@0.8.0
.How to reproduce
Simplified test case: https://codesandbox.io/s/xjpnqj2l4o
Steps to reproduce:
RED
box - which include the text "Hey, just text!"Expected behavior
The
RED
box should have attribute id="should-exist-in-dom" in Browser's DOM - but it won't.Environment (include versions). Did this work in previous versions?
Still work fine in
@0.7.3
and older one.. in thatcodesandbox
example - changereact-native-web
version back to@0.7.3
(package.json
) will fix that, and we'll see id="should-exist-in-dom" as we should.The text was updated successfully, but these errors were encountered: