Open glanujnehra opened 5 months ago
Thanks for the report. Since the issue is already in 1.12, given limited team resources it's not likely to be fixed by the UI team; see the project status at https://blog.jqueryui.com/2021/10/jquery-maintainers-update-and-transition-jquery-ui-as-part-of-overall-modernization-efforts/. PRs are welcome if they're not too complex and contain tests.
Please also provide a runnable test case on JS Bin or similar. Just seeing a screenshot from a full app is not enough.
Description
Due to the changes introduced in jQuery UI v1.13 for function
getNumber
selecting dateRangefrom
date clear outto
dateRCA
Updating jQuery UI from v1.9.2 to v1.13.2 changes the behaviour of getNumber function which extract a number from the string value. The issue was also observed when switching to version 1.12.1
Solution
changing v1.13.2
digits = new RegExp( "^\\d{" + minSize + "," + size + "}" ),
to v1.9.2digits = new RegExp('^\\d{1,' + size + '}'),
will fix the issue.
Screenshot
Affected Product
Magento -> Admin -> Reports -> Products -> Ordered
Error
Missing number at position 5
Link to test case