Skip to content

Commit

Permalink
work for the #9349
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Jan 27, 2025
1 parent 202488c commit 52c43ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/survey-core/src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5333,7 +5333,7 @@ export class SurveyModel extends SurveyElementCore
if (this.onAfterRenderQuestionInput.isEmpty) return;
let id = (<Question>question).inputId;
const { root } = settings.environment;
if (!!id && htmlElement.id !== id && typeof root !== "undefined") {
if (!!id && (!htmlElement || htmlElement.id !== id) && typeof root !== "undefined") {
let el = root.getElementById(id);
if (!!el) {
htmlElement = el;
Expand Down

0 comments on commit 52c43ed

Please sign in to comment.