Skip to content

Commit

Permalink
Fix the onCanShowProperty event (#5477)
Browse files Browse the repository at this point in the history
* Fix the `onCanShowProperty` and drag&drop events

* Revert drag&drop changes
RomanTsukanov authored May 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 655d583 commit 8cf4a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/survey-creator-core/src/creator-base.ts
Original file line number Diff line number Diff line change
@@ -447,7 +447,7 @@ export class SurveyCreatorModel extends Base
* [View Demo](https://surveyjs.io/survey-creator/examples/hide-category-from-property-grid/ (linkStyle))
*/
public onShowingProperty: EventBase<SurveyCreatorModel, PropertyAddingEvent> = this.addCreatorEvent<SurveyCreatorModel, PropertyAddingEvent>();
public onCanShowProperty: EventBase<SurveyCreatorModel, PropertyAddingEvent> = this.onShowingProperty;
public onCanShowProperty: EventBase<SurveyCreatorModel, any> = this.onShowingProperty;
/**
* This event is obsolete. Use the [`onSurveyInstanceCreated`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onSurveyInstanceCreated) event instead.
* @deprecated

0 comments on commit 8cf4a1e

Please sign in to comment.