fix: undefined and null wrap prop values are rendered as undefined instead of true by default#3151
fix: undefined and null wrap prop values are rendered as undefined instead of true by default#3151EvHaus wants to merge 1 commit intodiegomura:masterfrom
Conversation
|
|
Is it correct that |
…stead of true by default
The current behaviour is:
I think 1, 4 and 5 make sense. But 2 and 3 are unexpected to me.
I see where you're coming from however given that "no value" (case 1) and Let me know if you feel strongly about it and I'll make the PR change accordingly. Thanks @diegomura! |
cac1e3b to
7324cf2
Compare
Similar to #3149 and #3142, this PR fixes a bug introduced in this change. When a
wrapvalue ofundefinedornullis passed to<View>components, the latest versions of react-pdf will treat it asfalseinstead oftrue(which should be the default value).Also adds tests for this function.