Removing the runexpressiontrigger class throws an error on an attempt to add a survey trigger

This issue has been tracked since 2023-03-03.

Example
Original issue

Task: to remove the Run Expression trigger from a list of available trigger types.
The following code works for a complete trigger:

import { Serializer } from "survey-core";

Serializer.removeClass("completetrigger");

image

However, if you run the following code, the Cannot read properties of null (reading 'getType') exception is thrown on an attempt to add a trigger.

import { Serializer } from "survey-core";

Serializer.removeClass("runexpressiontrigger");
andrewtelnov wrote this answer on 2023-03-18

@JaneSjs @OlgaLarina The issue can be disapparead after this implementing this PR.
We will stop render choices if they closed.

Thank you,
Andrew

More Details About Repo
Owner Name surveyjs
Repo Name survey-creator
Full Name surveyjs/survey-creator
Language TypeScript
Created Date 2015-12-22
Updated Date 2023-03-30
Star Count 683
Watcher Count 29
Fork Count 308
Issue Count 301

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date