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

input types with checked={true} aren't rendering checked #37

Closed
solomon23 opened this issue Dec 16, 2016 · 2 comments
Closed

input types with checked={true} aren't rendering checked #37

solomon23 opened this issue Dec 16, 2016 · 2 comments
Labels

Comments

@solomon23
Copy link

solomon23 commented Dec 16, 2016

I can't seem to get enzyme to render with the checked attribute of an input. I've tried:

<input type="checkbox" checked="checked" value="party" id="party-button" disabled="disabled" />

and it'll render as (without the checked):

<input disabled="" id="party-button" type="checkbox" value="party" />

I tried these variations and they all render the same thing:

<input type="checkbox" checked={true} value="party" id="party-button" disabled />
<input type="checkbox" checked="checked" value="party" id="party-button" disabled={true} />

@adriantoine
Copy link
Owner

Hi @solomon23, thanks for raising the issue, I'll have a look as soon as I can, sorry for the delay!

@adriantoine adriantoine added the bug label Feb 9, 2017
@adriantoine
Copy link
Owner

I'm not able to reproduce this issue, if you can still reproduce it, please create a minimal repository where the issue is reproduceable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants