From 55e0ce9129ab92b4e47cc3e41dc34302bed71fbd Mon Sep 17 00:00:00 2001 From: Andrey Dolzhikov Date: Tue, 3 Dec 2024 19:27:22 +0200 Subject: [PATCH] T1265009 --- packages/devextreme/js/ui/shared/accessibility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devextreme/js/ui/shared/accessibility.js b/packages/devextreme/js/ui/shared/accessibility.js index ea60e4a209a1..d238cc56fe37 100644 --- a/packages/devextreme/js/ui/shared/accessibility.js +++ b/packages/devextreme/js/ui/shared/accessibility.js @@ -71,7 +71,7 @@ function getActiveAccessibleElements(ariaLabel, viewElement) { let $activeElements; if(ariaLabel) { - const escapedAriaLabel = ariaLabel?.replace(/"/g, '\\"'); + const escapedAriaLabel = ariaLabel?.replace(/\\/g, '\\\\').replace(/"/g, '\\"'); $activeElements = $viewElement.find(`[aria-label="${escapedAriaLabel}"][tabindex]`); } else { $activeElements = $viewElement.find('[tabindex]');