diff --git a/packages/survey-core/src/svgbundle.ts b/packages/survey-core/src/svgbundle.ts
index f22f9f4cd2..4bf052a5fc 100644
--- a/packages/survey-core/src/svgbundle.ts
+++ b/packages/survey-core/src/svgbundle.ts
@@ -11,8 +11,9 @@ export class SvgIconRegistry {
private iconPrefix = "icon-";
private processId(iconId: string, iconPrefix: string) {
- if (iconId.indexOf(iconPrefix) == 0) iconId = iconId.substring(iconPrefix.length);
- iconId = renamedIcons[iconId] || iconId;
+ if (iconId.indexOf(iconPrefix) == 0) {
+ iconId = iconId.substring(iconPrefix.length);
+ }
return iconId;
}
public registerIconFromSymbol(iconId: string, iconSymbolSvg: string) {
diff --git a/packages/survey-core/tests/icons/svgRegistryTests.ts b/packages/survey-core/tests/icons/svgRegistryTests.ts
index 096a28cb59..4476e7a00e 100644
--- a/packages/survey-core/tests/icons/svgRegistryTests.ts
+++ b/packages/survey-core/tests/icons/svgRegistryTests.ts
@@ -80,22 +80,22 @@ QUnit.test("svg import from svg via string - use prefix", function (assert) {
assert.equal(svg.iconsRenderedHtml(), "");
});
-QUnit.test("check that user's svgs with old name will be supported after icons renaming", function (assert) {
- const oldIconName = "icon-changecamera"; // see renamedIcons dictionary
- const newIconName = "icon-flip-24x24";
-
- let svg = new SvgIconRegistry();
- let res = svg.registerIconFromSvg(oldIconName, "");
- assert.ok(res);
- assert.equal(svg.iconsRenderedHtml(), ``);
-});
-
-QUnit.test("check that user's svgs with old name will be supported after icons renaming: whithout 'icon-' prefix", function (assert) {
- const oldIconName = "changecamera"; // see renamedIcons dictionary
- const newIconName = "flip-24x24";
-
- let svg = new SvgIconRegistry();
- let res = svg.registerIconFromSvg(oldIconName, "");
- assert.ok(res);
- assert.equal(svg.iconsRenderedHtml(), ``);
-});
+// QUnit.test("check that user's svgs with old name will be supported after icons renaming", function (assert) {
+// const oldIconName = "icon-changecamera"; // see renamedIcons dictionary
+// const newIconName = "icon-flip-24x24";
+
+// let svg = new SvgIconRegistry();
+// let res = svg.registerIconFromSvg(oldIconName, "");
+// assert.ok(res);
+// assert.equal(svg.iconsRenderedHtml(), ``);
+// });
+
+// QUnit.test("check that user's svgs with old name will be supported after icons renaming: whithout 'icon-' prefix", function (assert) {
+// const oldIconName = "changecamera"; // see renamedIcons dictionary
+// const newIconName = "flip-24x24";
+
+// let svg = new SvgIconRegistry();
+// let res = svg.registerIconFromSvg(oldIconName, "");
+// assert.ok(res);
+// assert.equal(svg.iconsRenderedHtml(), ``);
+// });