Opened 3 years ago
Last modified 3 years ago
#53755 new defect (bug)
WordPress 5.8 DatePicker component crashes
Reported by: | ilenejohnson | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | blocker | Version: | |
Component: | Date/Time | Keywords: | |
Focuses: | Cc: |
Description
when using the DatePicker component in the editor, try to change the month to input a different date. WP will crash and the error in the console is TypeError: t.onMonthPreviewed is not a function
I noticed in an article "Whats new in Gutenberg 10.9" from June of this year that bug # 31751 fix addresses this. I'm NOT using the gutenberg plugin, rather what comes with WordPress. This was not an issue in the previous version of WP.
I have cleared all caches etc tried on different computers with different test scenarios.
Change History (3)
#1
@
3 years ago
- Summary changed from WordPress 5.8 DatePickercomponent crashes to WordPress 5.8 DatePicker component crashes
#3
@
3 years ago
Here is what I see in the console.
: t.onMonthPreviewed is not a function
onMonthPreviewedHandler http://wp.gut/wp-includes/js/dist/components.min.js?ver=72eccad5b704ebf3e45a24b4da1773fe:10
value http://wp.gut/wp-includes/js/dist/components.min.js?ver=72eccad5b704ebf3e45a24b4da1773fe:23
Wg http://wp.gut/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:67
oj http://wp.gut/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:127
Aj http://wp.gut/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:160
Can confirm this bug. We are also experiencing this issue.
Seems to only affect DatePicker. We have temporarily changed to the DateTimePicker until this is fixed.
Looks like this was the fix in Gutenberg 10.9
https://github.com/WordPress/gutenberg/commit/749088ddf0072ca82ae297318dd29cd12d0a3c41