Skip to content

Commit 5022180

Browse files
author
tsv2013
committed
Full revert for #8529
1 parent 10a0277 commit 5022180

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/entries/jquery-ui.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ jQuery["fn"].extend({
1818
PopupSurvey: doPopupSurvey,
1919
SurveyWindow: doPopupSurvey
2020
});
21+
2122
function doPopupSurvey(props: any): void {
2223
return this.each(function () {
2324
var model: Survey = props.model;
2425
const survey = React.createElement(PopupSurvey, { ...props });
2526
ReactDOM.render(survey, this);
27+
2628
// var popupSurvey = props.popupModel || new PopupSurvey(model);
29+
2730
// if (props.expanded !== undefined) {
2831
// popupSurvey.isExpanded = props.expanded;
2932
// }
@@ -42,8 +45,11 @@ function doPopupSurvey(props: any): void {
4245
// popupSurvey.show();
4346
});
4447
}
48+
4549
SurveyModel.platform = "jquery";
50+
4651
export const preact: any = React;
52+
4753
export * from "./jquery-ui-model";
4854
export * from "./core-export";
4955

src/entries/react-ui.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ export { SurveyModel as Model } from "survey-core";
55
export * from "../utils/responsivity-manager";
66
export { unwrap } from "../utils/utils";
77

8-
import { checkLibraryVersion } from "survey-core";
8+
import { checkLibraryVersion } from "survey-core";
9+
10+
checkLibraryVersion(`${process.env.VERSION}`, "survey-react-ui");

src/react/reactquestion_file.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { ReactQuestionFactory } from "./reactquestion_factory";
77
import { attachKey2click } from "./reactSurvey";
88
import { LoadingIndicatorComponent } from "./components/loading-indicator";
99
import { SurveyAction } from "./components/action-bar/action-bar-item";
10-
import { ReactElementFactory } from "./element-factory";
11-
import { SurveyFileChooseButton } from "./components/file/file-choose-button";
10+
import { ReactElementFactory, SurveyFileChooseButton } from "../entries/react-ui-model";
1211

1312
export class SurveyQuestionFile extends SurveyQuestionElementBase {
1413
constructor(props: any) {

0 commit comments

Comments
 (0)