surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.11k stars 801 forks source link

goNextPageAutomatic is not working when using custom UI elements. #8527

Closed mariano-ramonda closed 2 months ago

mariano-ramonda commented 2 months ago

When using a custom UI component for rendering question's elements, as seen here https://surveyjs.io/form-library/examples/add-custom-items-to-single-and-multi-select-questions/reactjs#content-code goNextPageAutomatic = true does not work (while using the default UI, it works).

Are you requesting a feature, reporting a bug or asking a question?

This is a bug; the behavior should be the same regardless of the UI being rendered.

JaneSjs commented 2 months ago

Hello @mariano-ramonda, Thank you for reporting this issue. We will research it and update you shortly. https://plnkr.co/edit/ixmntFP03udVGind

andrewtelnov commented 2 months ago

@mariano-ramonda Here is the working example. You need to handle onMouseDown event as shown in the example.

Thank you, Andrew

mariano-ramonda commented 2 months ago

Thank you, @andrewtelnov. I highly recommend you to add this to the documentation about rendering custom UI and using go to next page automatically.