-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixing infinity loop bug in date range #2798
Conversation
Hello. Thanks for this. Someone already fixed this in another PR. I just need to push a new version. |
I took a look just now at the other bug fix |
Kudos, SonarCloud Quality Gate passed! |
* Fix #2788 (#2790) Break if current range-start is clicked to prevent infinite loop * adding placement option (#2789) * fixes #2785 (#2797) * fixes #2785 fixes #2783 fixes #2768 improves docs flow * fixed plugin/locale missing type defs * 2791 more tests (#2800) * validation tests * update datetime tests * "dates" tests * actions tests * fixing infinity loop bug in date range (#2798) * Improvements (#2801) * fixes #2795 * fixes #2784 * fixes #2687 * fixes #2786 * resolves #2764 * fix repl cdn links * fix date range bug * version 6.7.7 * version 6.7.7 --------- Co-authored-by: iTzVirtual_ <[email protected]> Co-authored-by: Killian Hale <[email protected]> Co-authored-by: GitHub User <[email protected]>
This was released with 6.7.7 |
* Fix #2788 (#2790) Break if current range-start is clicked to prevent infinite loop * adding placement option (#2789) * fixes #2785 (#2797) * fixes #2785 fixes #2783 fixes #2768 improves docs flow * fixed plugin/locale missing type defs * 2791 more tests (#2800) * validation tests * update datetime tests * "dates" tests * actions tests * fixing infinity loop bug in date range (#2798) * Improvements (#2801) * fixes #2795 * fixes #2784 * fixes #2687 * fixes #2786 * resolves #2764 * fix repl cdn links * fix date range bug * version 6.7.7 * version 6.7.7 --------- Co-authored-by: iTzVirtual_ <[email protected]> Co-authored-by: Killian Hale <[email protected]> Co-authored-by: GitHub User <[email protected]>
* Fix #2788 (#2790) Break if current range-start is clicked to prevent infinite loop * adding placement option (#2789) * fixes #2785 (#2797) * fixes #2785 fixes #2783 fixes #2768 improves docs flow * fixed plugin/locale missing type defs * 2791 more tests (#2800) * validation tests * update datetime tests * "dates" tests * actions tests * fixing infinity loop bug in date range (#2798) * Improvements (#2801) * fixes #2795 * fixes #2784 * fixes #2687 * fixes #2786 * resolves #2764 * fix repl cdn links * fix date range bug * version 6.7.7 * version 6.7.7 --------- Co-authored-by: iTzVirtual_ <[email protected]> Co-authored-by: Killian Hale <[email protected]> Co-authored-by: GitHub User <[email protected]>
development
branchWhat kind of change does this PR introduce? (Bug fix, feature, docs update, ...). If this is a fix, please tag a bug.
Bug fix.
What is the current behavior? (You can also link to an open issue here)
When dealing with date range and selecting the same date as start/end date it causes an infinite loop and browser crash.
What is the new behavior (if this is a feature change)?
As the problem was because of assuming that end date is always after start date, the start date was being incremented by 1 day before the for loop compare with the end date happens, causing the start date to be after the end date if it was the same day, hence the infinity loop.
The fix separates the increment from the initialization of the start variable and comparing if it's the same before the increment step and the for loop.
No