Skip to content

react-dynamic-poll - #6623

Closed
Closed

Description

@kezia1674

Disclaimer

Yes

Sample

react-dynamic-poll

Contributor(s)

@AriGunawan

What happened?

This is a fantastic web part - we love it! But we are having some problems with the poll results summary. On our intranet (a SharePoint Online communications site), the answers count is always exactly the same as the percentage values, e.g. 30 votes (30%), 20 votes (20%), etc. Looking in the actual Poll Answers list, the results count is quite different, and the calculated percentages aren't right either. My first theory was that the poll is only counting the first 100 votes that are received, and then calculating the percentages based on those results, but I've subsequently realised the percentage results do keep changing after 100 votes. But they're still not correct according to what's in the back-end Poll Answers list. I've attached a couple of screenshots showing the results shown by the app, and my calculation of what the results should be, based on what's in the Poll Answers list. We'd really appreciate if you can help us resolve this issue, as we'd love to be able to keep using this app.

Steps to reproduce

  1. Compile, deploy and add app to SharePoint site.
  2. Wait until more than 100 votes are received (or add/copy a bunch of answers to the Poll Answers list in the back end)
  3. Check the results count being shown by the app on the page where it's been added.
Image Image

Expected behavior

The results count will be exactly the same number as the percentage values, and won't represent the actual count of votes in the back-end Poll Answers list. (In other words, both the votes count and the percentages will be incorrect.)

Target SharePoint environment

SharePoint Online

Developer environment

Windows

Browsers

  • Internet Explorer
  • Microsoft Edge
  • Google Chrome
  • FireFox
  • Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

What version of Node.js is currently installed on your workstation?

22.23.3

What version of Node.js is required by the sample?

22.14.0 or later (but earlier than 23.0.0)

Paste the results of SPFx doctor

CLI for Microsoft 365 SharePoint Framework doctor
Verifying configuration of your system for working with the SharePoint Framework

√ SharePoint Framework v1.21.1
√ Node v22.23.3
√ yo v5.1.0
√ gulp-cli v3.1.0
√ bundled typescript used

Additional environment details

No response

Activity

  1. added
    type:bug-suspectedSuspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs
    on Oct 7, 2026
  2. AriGunawan commented on Oct 7, 2026

    @AriGunawan
    Contributor

    Hi @kezia1674 , glad you like the app, and thanks for your feedback.
    It's a valid issue, and I've fixed it in this pull request: #6624

    You can either wait until the pull request is merged into the main branch,
    or get the updated version directly from my fork here: https://github.com/AriGunawan/sp-dev-fx-webparts/tree/feature/support_large_answer/samples/react-dynamic-poll.

  3. kezia1674 commented on Oct 8, 2026

    @kezia1674
    Author

    Sincere thanks from everyone in my team @AriGunawan for updating the app so quickly. I've just deployed it on our intranet and it's working perfectly. Screenshot attached showing how great it looks now, with all 641 votes appearing properly. We are so grateful. Thank you!

    Image
  4. AriGunawan commented on Oct 8, 2026

    @AriGunawan
    Contributor

    You're very welcome! Really glad to hear it's working well now.
    It's great to see the app being used by real users, especially with 641 votes! Thanks again for your feedback and for sharing the screenshot. Really appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bug-suspectedSuspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions