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

Dropdown only printing first option #196

Closed
BobbyErickson89 opened this issue Dec 19, 2019 · 6 comments · Fixed by #335
Closed

Dropdown only printing first option #196

BobbyErickson89 opened this issue Dec 19, 2019 · 6 comments · Fixed by #335
Labels

Comments

@BobbyErickson89
Copy link

I am currently experiencing a problem with trying to print a dropdown on my site's page. It appears that the select tag is only rendering the first option for print, regardless of which option has been chosen by the user.

My select element has a value attribute that is tied to a state variable. There is also an onChange event on my select tag that triggers the state/value change whenever the user selects a new option from the dropdown. However, printing seems to ignore whatever the chosen value is and will only print the first option in the dropdown.

I've attached a code sandbox link demonstrating this problem.
CodeSandbox Example

@MattFromGer
Copy link

Maybe this issue comes from the fact that the DOM tree gets cloned and some attributes are getting lost in the process?
The built-in browser printing mode works as expected.

Same issue here: #66 which got closed mistakenly.

@MatthewHerbst
Copy link
Owner

@MattFromGer yes, all these issues are likely related. I don't know what's causing them. If you have any ideas, I'm happy to explore. #66 was closed because the same issue is now being tracked in #195

@tugayevci
Copy link

Any update ?

@alejandroyunes
Copy link

anyone came up with a solution??

@MatthewHerbst
Copy link
Owner

Apologies for the delay on fixing this. Turns out it was very similar to the previous issue with fixing checkbox values. Will push a new version shortly with the fix. Happy new years!

@MatthewHerbst
Copy link
Owner

Should be fixed in v2.12.2, along with ensuring all inputs work. Please let me know if you see any issues. Thanks!

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

Successfully merging a pull request may close this issue.

5 participants