Nested popups - parent disappears (filter -> DateTimer)
Describe the bug When I put DataTimers into filters and I click on year field, month field or arrows to switch month, the filter pop-up in the background disappears. Is there any solution for this?
To Reproduce Steps to reproduce the behavior:
- Create custom filter with DateTimer input
- Create Selection, attach custom filter
- Append selection to layout array in Screen
Expected behavior The filter pop-up should remain visible until it is closed by Apply button or by clicking outside of both filter popup and nested pop-ups (such as DateTimer's pop-up)
Screenshots
Desktop:
- OS: macOS
- Browser: chrome, safari
- Version: latest
Smartphone:
- not tested yet
Server:
- Platfrom Version: 14.34.0
- Laravel Version: 10.48.20
- PHP Version: 8.2
- Database: Postgres
- Database Version: 15
Additional context I was told, it has been resolved once, however, it seems the problem arose again. We would also greatly appreciate the ability to change the filter pop-up width and to disable autofocus on first filter's input. We are currently building the internal system for the third largest radio station in Slovakia on the top of Orchid and things like these really suck. We would really appreciate any help.
I'm sorry to hear you ran into this issue. To prevent the dropdown from closing when interacting with the calendar, you can add the static method to your method chain, like this:
DateTimer::make('created_at')
->static();
I’m not entirely sure why this isn’t the default behavior, but I’ll look into it and make sure we improve the experience going forward.
Thank you @tabuna for your fast response, it works as expected now. Only one more bug that occurs when combining static() with allowEmpty():
It pushes text removal button to the next line.
Would be great to make it default behaviour, I totally agree. Consider autofocus disabling option and changeable width of filter pop-up as well. ;)