Files
piratepoet/patches
Rostislav Wolny 95fc8662a6 Fix issue with month switching in date range picker
The issue is related to the underlying react-dates library used
in woocommerce/components in calendar/date-range.js

See https://github.com/woocommerce/woocommerce/blob/trunk/packages/js/components/src/calendar/date-range.js#L45-L104

I was not able to fully understand why it started to happen after the update
but I have a suspicion that it may be related to the change that causes rendering
popups at the end of the body.

The Gutenberg library already moved away from react-dates and I assume
that Woo Components will do that as well.

This commit adds a patch that adds e.stopPropagation() to the place
where the original workaround is trying to prevent losing focus.

[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
..