DatePicker cutoff if last block on wp editor page
-
Things i have checked
- Switch to the Twenty Twenty theme
- Disable all plugins
- Clear your browser cache and retest
Summary
.tribe-editor__dashboard position absolute falls of page
Issue;
If you put EventDateTime as last block on a wordpress page in the editor, when opening the datepicker it is cutoff by the page. Because its css position absolute the wordpress overal scrollbar doesnt expand.
Scenario:
- Inside the wordpress editor (see attachment)
How to reproduce
- Create a page
- Fill it with dummy lorum ipsum
- Add the EventDateTime wordpress block
- Try and fill a date
- Watch as the datepicker is cutoff because it position absolute’s itself halfway off the page.
Proposed solution
Add code to detect if the datepicker input is not fully visible
and if so make the content flow upwards instead of downwards.
(intersection observer, or checking if its near the end of the page or something)
https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘DatePicker cutoff if last block on wp editor page’ is closed to new replies.