getNewRange was returning the wrong result when comparing two different dates since they had different object references.
I'm using current utility functions to do better date comparison.
This change fixes the way we can use polaris Datepickers.
Here is a PR that has a broken behaviour when using current polaris Datepicker: https://github.com/Shopify/web/pull/8192
getNewRange
was returning the wrong result when comparing two different dates since they had different object references.I'm using current utility functions to do better date comparison.
This change fixes the way we can use polaris Datepickers. Here is a PR that has a broken behaviour when using current polaris Datepicker: https://github.com/Shopify/web/pull/8192