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

focusFirstQuestionAutomatic and focusFirstQuestion() do not focus a Dynamic Panel with no input fields #8764

Closed
JaneSjs opened this issue Sep 2, 2024 · 0 comments · Fixed by #8790
Assignees
Labels
enhancement user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Sep 2, 2024

T19600 - focusFirstQuestion() is not highlighting first question
https://surveyjs.answerdesk.io/internal/ticket/details/T19600


Neither focusFirstQuestionAutomatic nor the survey.focusFirstQuestion() function doesn't focus a Dynamic Panel when it is the first element on a page: View Demo.

However, the survey.focusQuestion('matrixName') focuses a Dynamic Matrix.

Expected behavior: when enabling the focusFirstQuestionAutomatic or using the survey.focusFirstQuestion() function, a Dynamic Panel is focused even if it doesn't contain an input element. For instance, the Add Panel button is focused.


Workaround: programmatically focus the Add Panel button of a Dynamic Panel.
View Demo

@JaneSjs JaneSjs added question user issue An issue or bug reported by users labels Sep 2, 2024
@JaneSjs JaneSjs changed the title The survey.focusFirstQuestion function doesn't focuses a Dynamic Panel unlike the survey.focusQuestion function The survey.focusFirstQuestion function doesn't focus a Dynamic Panel unlike the survey.focusQuestion function Sep 2, 2024
@JaneSjs JaneSjs changed the title The survey.focusFirstQuestion function doesn't focus a Dynamic Panel unlike the survey.focusQuestion function The survey.focusFirstQuestion function doesn't focus a Dynamic Panel unlike the survey.focusQuestion function does Sep 2, 2024
@JaneSjs JaneSjs self-assigned this Sep 3, 2024
@JaneSjs JaneSjs changed the title The survey.focusFirstQuestion function doesn't focus a Dynamic Panel unlike the survey.focusQuestion function does The survey.focusFirstQuestionAutomatic / survey.focusFirstQuestion function doesn't focus a Dynamic Panel with no input fields Sep 4, 2024
@JaneSjs JaneSjs assigned andrewtelnov and unassigned JaneSjs Sep 4, 2024
andrewtelnov added a commit that referenced this issue Sep 7, 2024
…nction doesn't focus a Dynamic Panel with no input fields fix #8764
andrewtelnov added a commit that referenced this issue Sep 7, 2024
tsv2013 pushed a commit that referenced this issue Sep 9, 2024
#8790)

* The survey.focusFirstQuestionAutomatic / survey.focusFirstQuestion function doesn't focus a Dynamic Panel with no input fields fix #8764

* Fix makup tests #8764
@OlgaLarina OlgaLarina added this to the v1.11.15 milestone Sep 9, 2024
@RomanTsukanov RomanTsukanov changed the title The survey.focusFirstQuestionAutomatic / survey.focusFirstQuestion function doesn't focus a Dynamic Panel with no input fields focusFirstQuestionAutomatic and focusFirstQuestion() do not focus a Dynamic Panel with no input fields Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement user issue An issue or bug reported by users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants