From fa3fa3c7f81e4117510753953ccc04710a7c842f Mon Sep 17 00:00:00 2001 From: RomanTsukanov Date: Tue, 19 Nov 2024 16:46:09 +0400 Subject: [PATCH] Update the `onOpenFileChooser` description --- packages/survey-core/src/survey-events-api.ts | 6 +++--- packages/survey-core/src/survey.ts | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/survey-core/src/survey-events-api.ts b/packages/survey-core/src/survey-events-api.ts index a13f7ff236..8d4785f013 100644 --- a/packages/survey-core/src/survey-events-api.ts +++ b/packages/survey-core/src/survey-events-api.ts @@ -526,16 +526,16 @@ export interface OpenFileChooserEvent { */ input: HTMLInputElement; /** - * A survey element (question, panel, page, or survey) or a theme JSON schema for which this event is raised. + * A question for which this event is raised. */ element: Base; /** * The type of the element passed as the `options.element` parameter.\ - * Possible values: `"theme"`, `"header"`, or any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method. + * Possible values: any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method. */ elementType: String; /** - * The name of the survey element property or theme property for which files are being selected. + * The name of the survey element property for which files are being selected. */ propertyName: String; /** diff --git a/packages/survey-core/src/survey.ts b/packages/survey-core/src/survey.ts index 368c80d634..f0229003a8 100644 --- a/packages/survey-core/src/survey.ts +++ b/packages/survey-core/src/survey.ts @@ -464,9 +464,8 @@ export class SurveyModel extends SurveyElementCore */ public onGetResult: EventBase = this.addEvent(); /** - * An event that is raised when Survey Creator opens a dialog window for users to select files. - * @see onUploadFile - * @see uploadFiles + * An event that is raised when a respondent opens a dialog window to select files. + * @see chooseFiles */ public onOpenFileChooser: EventBase = this.addEvent(); /**