Skip to content

Commit

Permalink
Patch render func in jquery-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Jul 15, 2024
1 parent baf3977 commit 74fe97c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/entries/jquery-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ function doPopupSurvey(props: any): void {
}

SurveyModel.platform = "jquery";
SurveyModel.prototype["render"] = function (element: any = null) {
if (this.renderCallback) {
this.renderCallback();
} else {
const survey = React.createElement(Survey, { model: this });
ReactDOM.render(survey, element);
}
};

export const preact: any = React;

Expand Down

0 comments on commit 74fe97c

Please sign in to comment.