diff --git a/packages/survey-core/src/actions/action.ts b/packages/survey-core/src/actions/action.ts index 8fdc79434f..6a7d1d7d96 100644 --- a/packages/survey-core/src/actions/action.ts +++ b/packages/survey-core/src/actions/action.ts @@ -551,7 +551,9 @@ export class Action extends BaseAction implements IAction, ILocalizableOwner { getRendererContext(locStr: LocalizableString): any { return this.owner ? this.owner.getRendererContext(locStr) : locStr; } public setVisible(val: boolean): void { - this._visible = val; + if(this.visible !== val) { + this._visible = val; + } } public getVisible(): boolean { return this._visible; diff --git a/packages/survey-core/src/itemvalue.ts b/packages/survey-core/src/itemvalue.ts index b44aa9a47b..fcd8a43af7 100644 --- a/packages/survey-core/src/itemvalue.ts +++ b/packages/survey-core/src/itemvalue.ts @@ -452,7 +452,9 @@ export class ItemValue extends BaseAction implements ILocalizableOwner, IShortcu return isVisible && visible; } protected setVisible(val: boolean): void { - this._visible = val; + if(this.visible !== val) { + this._visible = val; + } } protected getLocTitle(): LocalizableString { return this.locText;