Skip to content

Commit 04cd567

Browse files
authored
DateBox: ui should not freeze on non digit key press when non arabic numbers locale is used (T1311652) (#31852)
1 parent 613f659 commit 04cd567

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/devextreme/js/__internal/ui/date_box/m_date_box.mask.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,10 @@ class DateBoxMask extends DateBoxBase {
314314
}
315315

316316
_searchString(char) {
317-
// eslint-disable-next-line radix
318-
if (!isNaN(parseInt(this._getActivePartProp('text')))) {
317+
const text = this._getActivePartProp('text');
318+
const convertedText = numberLocalization.convertDigits(text, true);
319+
320+
if (!isNaN(parseInt(convertedText, 10))) {
319321
return;
320322
}
321323

0 commit comments

Comments
 (0)