You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great package!
I just have one but.
When I set isVoted={true} and isVotedId={0} animation with the green bar does not work but isVoted is working as the input is blocked.
Any idea why that happens?
The problem is the ref for the object is different than when you populate data using setstate, which is why if you pass static(mock) data to the leaf poll it works as expected.
This easiest solution for me was calling my API first then rendering the LeafPoll element. This fixed the error above and also the other issue related to already voted and voted choice.
Hi,
Great package!
I just have one but.
When I set isVoted={true} and isVotedId={0} animation with the green bar does not work but isVoted is working as the input is blocked.
Any idea why that happens?
here is my code:
<LeafPoll
type='multiple'
question='Who grows the best "Movember Moustache"? Please vote now.'
results={candidates}
theme={customTheme}
onVote={vote}
isVoted={true}
isVotedId={1}
// isVoted={userVoted.isVoted}
// isVotedId={userVoted.isVotedId}
/>
Error:
TIA
The text was updated successfully, but these errors were encountered: